Skip to content

bug: Button click-through issue when using touch #84

Description

@Dadadah

When using touch, non-aria touchable elements behind a button created with createButton will receive a click event if the aria button is removed during the click. This is likely similar to the upstream issue adobe/react-spectrum#1513.

I've created a sandbox with the reproduction: https://codesandbox.io/p/devbox/peaceful-drake-kgqxtg

Expected behavior: Clickable elements behind a button should not be clicked.

Observed behavior: Clickable elements behind a button that are not made with this library will be clicked if the aria button is removed during the click.

Adding a delay to the onPress event that hides the modal prevents the issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions