Skip to content

PanResponder release triggers onPress of child component #2765

Open
@aryo

Description

@aryo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions