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

PanResponder release triggers onPress of child component #2765

Open
1 task done
aryo opened this issue Mar 4, 2025 · 0 comments
Open
1 task done

PanResponder release triggers onPress of child component #2765

aryo opened this issue Mar 4, 2025 · 0 comments
Labels

Comments

@aryo
Copy link
Contributor

aryo commented Mar 4, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Describe the issue

When upgrading react-native-web 0.18.12 -> 0.19.13, it seems like this bug has resurfaced: #1788, where releasing the press in the area of a child component that has an onPress handler actually triggers it.

Interestingly, this bug doesn't happen if I have chrome devtools open with device toolbar toggled on (cmd+shift+m).

Expected behavior

onPress should not be triggered

Steps to reproduce

react-native-web 0.19.13
react 18.2.0

Test case

https://codesandbox.io/p/sandbox/cool-sun-3rrvww

Additional comments

No response

@aryo aryo added the bug label Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant