You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The onPress callback is only be called on the first ancestor of the native click` target that is using the PressResponder.
1.) Why is this the case? This breaks existing web expectations that libraries have, like Radix UI (which listens for events with a handler on the root document, expecting events to bubble to it).
2.) Are there any workarounds? I could patch the lib to add a prop to disable this behavior but would like a cleaner solution if possible thank you.
Thank you for all your work to create this library in your free time.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
Trying to understand react-native-web behavior. It appears that click events for Pressable are not propagating and I believe it is due to this line
react-native-web/packages/react-native-web/src/modules/usePressEvents/PressResponder.js
Line 429 in a5ba27c
The comment above it mentions that:
1.) Why is this the case? This breaks existing web expectations that libraries have, like Radix UI (which listens for events with a handler on the root document, expecting events to bubble to it).
2.) Are there any workarounds? I could patch the lib to add a prop to disable this behavior but would like a cleaner solution if possible thank you.
Thank you for all your work to create this library in your free time.
Beta Was this translation helpful? Give feedback.
All reactions