react-spectrum
react-spectrum copied to clipboard
Virtual press fails to re-open Popover sometimes
Provide a general summary of the issue here
I'm using a trackpad with tap-to-click enabled. If I close and re-open a menu that looks like this, sometimes it requires two taps to re-open:
<MenuTrigger>
<Button>Open menu</Button>
<Popover>
<Menu>
<MenuItem id="hello">Hello</MenuItem>
</Menu>
</Popover>
</MenuTrigger>
๐ค Expected Behavior?
One tap should close the menu, and the next one should consistently re-open it. (It appears to work correctly if I use a full click instead of a tap.)
๐ฏ Current Behavior
Most of the times it works as expected, but sometimes (for me it's once every 10 taps or so, but this could be machine specific) it swallows a tap without re-opening the popover
๐ Possible Solution
๐คท
๐ฆ Context
No response
๐ฅ๏ธ Steps to Reproduce
https://codesandbox.io/p/sandbox/ecstatic-keller-hcd3cf
Version
"react-aria-components": "1.1.1"
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
macOS
๐งข Your Company/Team
No response
๐ท Tracking Issue
No response
Hmm I'm unable to reproduce on my mac. I'm on chrome v123 and running ventura on a m1 chip. Would you mind sharing more information about your device + chrome version?
M1 mac w/ macOS Sonoma, Chrome 124.0.6367.61
Here's a capture with keycaster:
https://github.com/adobe/react-spectrum/assets/13100/806950d8-00c5-46e0-b749-0b951be1328d
The first three pairs of taps successfully open/close the popover, then the 4th pair of taps demonstrates the issue.