react-spectrum icon indicating copy to clipboard operation
react-spectrum copied to clipboard

[RAC] Checkbox not recognizing shift-click inside collections

Open alanhajo-ui opened this issue 4 months ago โ€ข 3 comments

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

  1. Go to a collection component
  2. Select a checkbox
  3. 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

alanhajo-ui avatar Aug 01 '25 11:08 alanhajo-ui