-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the issue
onPress callback is triggered twice if button is pressed with "Enter" key and removed during the callback.
Expected behavior
onPress callback is invoked once
Steps to reproduce
- Create
button(e.g.Pressablewithrole="button" - Add
onPresscallback that will remove the button - Focus the
button(e.g. "Tab" key) - Press "Enter" key
Test case
https://codesandbox.io/p/devbox/ypp6kr
Additional comments
No response
timurztd, alubchuk, cnt000paramount and nspaethtimurztd and cnt000paramount