-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[fix] Correctly propagate pointer-events: auto
to children when set to box-none
#2789
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] Correctly propagate pointer-events: auto
to children when set to box-none
#2789
Conversation
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 03c6a93:
|
pointer-events
to children when set to box-none
pointer-events: auto
to children when set to box-none
605b413
to
5202ca7
Compare
By replacing usages of `pointerEvents` to use styles instead of props, we won't get an annoying warning in the logs.x The underlying issue in React Native Web which prevented children of a `pointer-events: box-none` element from receiving pointer events is resolved by necolas/react-native-web#2789
By replacing usages of `pointerEvents` to use styles instead of props, we won't get an annoying warning in the logs. The underlying issue in React Native Web which prevented children of a `pointer-events: box-none` element from receiving pointer events is resolved by necolas/react-native-web#2789 Fixes react-navigation#12441
By replacing usages of `pointerEvents` to use styles instead of props, we won't get an annoying warning in the logs. The underlying issue in React Native Web which prevented children of a `pointer-events: box-none` element from receiving pointer events is resolved by necolas/react-native-web#2789 Fixes react-navigation#12441
By replacing usages of `pointerEvents` to use styles instead of props, we won't get an annoying warning in the logs. The underlying issue in React Native Web which prevented children of a `pointer-events: box-none` element from receiving pointer events is resolved by necolas/react-native-web#2789 Fixes react-navigation#12441
… to `box-none` Corrects `pointer-events: box-none` behavior to match what's described at https://reactnative.dev/docs/view#pointerevents Fixes necolas#2606
5202ca7
to
03c6a93
Compare
@@ -176,6 +176,30 @@ describe('StyleSheet/compile', () => { | |||
] | |||
`); | |||
}); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy to remove the test if the maintainer(s) think the snapshot test above suffices
By replacing usages of `pointerEvents` to use styles instead of props, we won't get an annoying warning in the logs. The underlying issue in React Native Web which prevented children of a `pointer-events: box-none` element from receiving pointer events is resolved by necolas/react-native-web#2789 Fixes react-navigation#12441
By replacing usages of `pointerEvents` to use styles instead of props, we won't get an annoying warning in the logs. The underlying issue in React Native Web which prevented children of a `pointer-events: box-none` element from receiving pointer events is resolved by necolas/react-native-web#2789 Fixes react-navigation#12441
BREAKING CHANGE: the minimum required version for `react-native-web` is now `~0.21.0` **Motivation** By replacing usages of `pointerEvents` to use styles instead of props, we won't get an annoying warning in the logs. The underlying issue in React Native Web which prevented children of a `pointer-events: box-none` element from receiving pointer events is resolved by necolas/react-native-web#2789. A follow-up fix to React Native Testing Library was also required, PR here callstack/react-native-testing-library#1799. Fixes #12441 **Test plan** CI (unit + E2E)
Corrects
pointer-events: box-none
behavior to match what's described at https://reactnative.dev/docs/view#pointereventsFixes #2606