mui / mui-x

MUI X: Build complex and data-rich applications using a growing list of advanced React components, like the Data Grid, Date and Time Pickers, Charts, and more!
https://mui.com/x/
4.04k stars 1.24k forks source link

Add Tree Select component #514

Open ghost opened 5 years ago

ghost commented 5 years ago
Screenshot 2022-01-29 at 20 06 23

I would recommend to have such component in material ui too (also look at variations in options): Such components are needed when writing more form oriented applications.

Benchmark

Similar to #511

joshwooding commented 4 years ago

Some interesting accessibility decisions will need to be made with this, the TreeView aria page lists behaviour for left and right arrow + the home and end keys. Since these keys already have default behaviours in inputs how would these interact?

oliviertassinari commented 4 years ago

Since these keys already have default behaviours in inputs how would these interact?

Would it work if we reproduce what the Autocomplete component has? I believe we allow the behavior to change depending on if the popup is open or closed: handleHomeEndKeys.

przemek-git commented 2 years ago

Not necessarily a tree select, but selecting whole groups can be achieved with Autocomplete, here's an example which might help - https://codesandbox.io/s/material-ui-autocomplete-grouped-multiselect-ejbcr.

Screenshot 2022-06-01 at 23 32 43