Feature Description
I'll refer to the multiselect example in the Aria docs: https://angular.dev/guide/aria/tree#multi-selection
Clicking on an item with children (a folder) both selects it and toggles its collapsed/expanded state. This behavior makes it very difficult to select an item inside a folder without also selecting the folder. To see the issue, attempt to select src/main.ts in the multiselect example without also selecting the src directory:
- Click
src to open the src directory, which also selects the directory (not what I was trying to do)
- Click
main.ts to select it
- Click
src again to de-select it, which also collapses it (an extra step to accomplish what I was trying to do)
- Now
main.ts is not visible, but is still selected. The only way to see that it is selected is to re-expand the src directory, which also selects it.
This is counterintuitive; there should be a way to select an item without also expanding its group and a way to expand a group without selecting it. This is possible using the keyboard (right/left arrow keys expand without selecting), but not a mouse.
Use Case
- A basic file explorer with multiselection.
- A select all / deselect all / some selected checkbox pattern for folders
Feature Description
I'll refer to the multiselect example in the Aria docs: https://angular.dev/guide/aria/tree#multi-selection
Clicking on an item with children (a folder) both selects it and toggles its collapsed/expanded state. This behavior makes it very difficult to select an item inside a folder without also selecting the folder. To see the issue, attempt to select
src/main.tsin the multiselect example without also selecting thesrcdirectory:srcto open the src directory, which also selects the directory (not what I was trying to do)main.tsto select itsrcagain to de-select it, which also collapses it (an extra step to accomplish what I was trying to do)main.tsis not visible, but is still selected. The only way to see that it is selected is to re-expand thesrcdirectory, which also selects it.This is counterintuitive; there should be a way to select an item without also expanding its group and a way to expand a group without selecting it. This is possible using the keyboard (right/left arrow keys expand without selecting), but not a mouse.
Use Case