Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fix) Make children interactive when parent pressable is disabled #2536

Conversation

jennifer-dickinson
Copy link
Contributor

This PR addresses the following issue: #2391.

It fixes the inconsistency between native builds and react-native-web, where when disabling Pressables and other tappable elements, the children on native builds are still interactable (swiping, tapping, etc) but un-interactable in react-native-web. On react-native-web, the pointerEvents were set to 'none' to address 094bd0e, which causes this inconsistency.

The solution was to change from 'none' to 'box-none', which maintains the desired behavior of the original issue and addresses the current.

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e4177c8:

Sandbox Source
react-native-web-examples Configuration

@jennifer-dickinson jennifer-dickinson changed the title Make children clickable when parent is disabled (fix) Make children interactive when parent pressable is disabled Jun 13, 2023
@necolas necolas added this to the 0.19.x milestone Jun 13, 2023
@necolas
Copy link
Owner

necolas commented Jun 13, 2023

Thanks for looking into this and putting up a PR

@necolas necolas closed this in 9b69c73 Jun 16, 2023
@necolas
Copy link
Owner

necolas commented Jun 16, 2023

This fix is included in 0.19.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants