react-spectrum
885b5e6b - Add support for highlight selection and onAction to TableView and ListView (#2363)

Commit
3 years ago
Add support for highlight selection and onAction to TableView and ListView (#2363) * Followup to selectOnFocus add demo stories fix clicking without shift * add selectionBehavior * Add story for useSelectableList * update default * cleanup stories * remove extraneous dependency * support keyboard navigation without replacing the selection in select on focus mode * fix lint * Touch multiselect always use toggle (#2046) * Mobile updates for selection * Move mobile awareness to the component * fix lint * move to touch/vo detection * Select on initial focus (#2026) * Select on focus first time in collection * fix lint * Only start selecting on first focus if selectOnFocus is on * add a test * fix aria * fix lint * remove dead code * fix lint * fix lint * Fix ctrl + alt + space * Hide checkboxes and add border for highlight selection mode * Expose selectionBehavior option on SelectionManager * Don't show focus ring when pressing modifier keys * Fix test * Fix table tests * Add useLongPress to @react-aria/interactions * Implement onAction support in TableView * Add highlight selection and onAction support to ListView * Fix tests * Fix ListView onAction with no selection * Only require alt key not ctrl + alt * Fix CardView tests * Prevent context menu on touch * Improve event cleanup * Change non-contiguous selection modifier depending on platform * Rename to selectionStyle in Spectrum and fix some bugs * Enforce selection mode better * code review * Remove global styles from story * Add stopPropagation back when continuePropagation is not available Co-authored-by: Rob Snow <rsnow@adobe.com> Co-authored-by: Rob Snow <snowystinger@gmail.com> Co-authored-by: Daniel Lu <dlu@livefyre.com>
Author
Parents
Loading