Open
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.Pressable
withrole="button"
- Add
onPress
callback 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