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