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.
When using touch, non-aria touchable elements behind a button created with
createButtonwill 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.