Description
Provide a general summary of the issue here
If you spend some time selecting items in a ListBox (one at a time, with trackpad, tap-to-click enabled, no modifier keys) sometimes it'll add to the existing selection instead of replacing the selection wholesale.
🤔 Expected Behavior?
The selection should always be replaced wholesale.
😯 Current Behavior
Sometimes (unpredictably) the selection grows to more than one item, which, I believe, should be impossible.
💁 Possible Solution
I haven't looked into it; don't know root cause.
🔦 Context
Just trying to get drag-and-drop working between a few ListBoxes, looking to mimic how file selection works in the major OS file explorers. Implementing drag-and-drop is not necessary to reproduce the issue.
🖥️ Steps to Reproduce
https://codesandbox.io/p/sandbox/dark-surf-dbyh42?file=%2Fsrc%2FApp.tsx
I'm borrowing this sample code from #4391, which seems like it might be related but is not totally overlapping.
Version
"react-aria": "^3.32.1",
"react-aria-components": "^1.1.1",
"react-stately": "^3.30.1",
"tailwindcss-react-aria-components": "^1.1.1"
What browsers are you seeing the problem on?
Reproducing in Chrome (123.0.6312.107), Arc (1.37.0), Firefox (124.0.2)
Can't reproduce in Safari (17.4.1)
What operating system are you using?
macOS
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response