react-spectrum
react-spectrum copied to clipboard
[RAC] Checkbox not recognizing shift-click inside collections
Provide a general summary of the issue here
Currently, you can select multiple selections in a collection (e.g. Tree in this example). See video:
https://github.com/user-attachments/assets/782633b1-e889-4fac-9176-b9856d17a72b
However, the functionality lacks when doing the same action on a Checkbox within the collection items.
See video:
https://github.com/user-attachments/assets/0bb7f0a6-3bec-4d40-a849-69df35f30891
๐ค Expected Behavior?
Ideally, shift-clicking the Checkbox should behave the same and select items between.
๐ฏ Current Behavior
Checkbox does not apply multi-selection functionality with keyboard actions.
๐ Possible Solution
Expose same events to slot="selection", that you already expose to the list
๐ฆ Context
No response
๐ฅ๏ธ Steps to Reproduce
- Go to a collection component
- Select a checkbox
- Shift-click a checkbox a few rows away
See video above for clarity
Version
RAC 1.11.0
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
MacOS Sequoia 15.5
๐งข Your Company/Team
Ubiquiti Inc
๐ท Tracking Issue
No response