mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-08-15 18:45:06 +00:00
+1
-1
@@ -32,7 +32,7 @@ exports[`components/Button prop "color" 1`] = `
|
|||||||
exports[`components/Button prop "disabled" 1`] = `
|
exports[`components/Button prop "disabled" 1`] = `
|
||||||
<div
|
<div
|
||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
class="css-view-175oi2r r-transitionProperty-1i6wzkk r-userSelect-lrvibr r-borderRadius-1jkafct r-backgroundColor-11mpjr4"
|
class="css-view-175oi2r r-transitionProperty-1i6wzkk r-userSelect-lrvibr r-borderRadius-1jkafct r-backgroundColor-11mpjr4 r-pointerEvents-633pao"
|
||||||
role="button"
|
role="button"
|
||||||
style="transition-duration: 0s;"
|
style="transition-duration: 0s;"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
|
|||||||
+1
-1
@@ -152,7 +152,7 @@ exports[`components/Pressable prop "accessibilityRole" value is set 1`] = `
|
|||||||
exports[`components/Pressable prop "disabled" 1`] = `
|
exports[`components/Pressable prop "disabled" 1`] = `
|
||||||
<div
|
<div
|
||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
class="css-view-175oi2r"
|
class="css-view-175oi2r r-pointerEvents-633pao"
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
/>
|
/>
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -205,6 +205,7 @@ function Pressable(props: Props, forwardedRef): React.Node {
|
|||||||
onContextMenu={contextMenuHandler}
|
onContextMenu={contextMenuHandler}
|
||||||
onFocus={focusHandler}
|
onFocus={focusHandler}
|
||||||
onKeyDown={keyDownHandler}
|
onKeyDown={keyDownHandler}
|
||||||
|
pointerEvents={disabled ? 'none' : rest.pointerEvents}
|
||||||
ref={setRef}
|
ref={setRef}
|
||||||
style={[
|
style={[
|
||||||
!disabled && styles.root,
|
!disabled && styles.root,
|
||||||
|
|||||||
@@ -167,6 +167,7 @@ function TouchableHighlight(props: Props, forwardedRef): React.Node {
|
|||||||
{...pressEventHandlers}
|
{...pressEventHandlers}
|
||||||
accessibilityDisabled={disabled}
|
accessibilityDisabled={disabled}
|
||||||
focusable={!disabled && focusable !== false}
|
focusable={!disabled && focusable !== false}
|
||||||
|
pointerEvents={disabled ? 'none' : undefined}
|
||||||
ref={setRef}
|
ref={setRef}
|
||||||
style={[
|
style={[
|
||||||
styles.root,
|
styles.root,
|
||||||
|
|||||||
@@ -126,6 +126,7 @@ function TouchableOpacity(props: Props, forwardedRef): React.Node {
|
|||||||
{...pressEventHandlers}
|
{...pressEventHandlers}
|
||||||
accessibilityDisabled={disabled}
|
accessibilityDisabled={disabled}
|
||||||
focusable={!disabled && focusable !== false}
|
focusable={!disabled && focusable !== false}
|
||||||
|
pointerEvents={disabled ? 'none' : undefined}
|
||||||
ref={setRef}
|
ref={setRef}
|
||||||
style={[
|
style={[
|
||||||
styles.root,
|
styles.root,
|
||||||
|
|||||||
Reference in New Issue
Block a user