react-spectrum
d750b23c - Improve handling of ListView disabled rows, and add storybook controls (#3123)

Commit
3 years ago
Improve handling of ListView disabled rows, and add storybook controls (#3123) * Add storybook controls, reorganize ListView stories * Enable interaction on non-selectable rows with onAction * Prevent selection of disabled items via keyboard with highlight selection * Make actions primary on non-selectable rows * Update selection style when prop changes Bug found via storybook controls * Drop addon-knobs * Revert useGridRow change for now * fix lint * Fix navigation in story example * Implement multiple disabled behaviors * Add example for disabling actions not selection * drop disabledBehavior="action" and return states from useSelectableItem * Better prop description * Add aria-disabled and more tests * Review updates Co-authored-by: Robert Snow <rsnow@adobe.com> Co-authored-by: Daniel Lu <dl1644@gmail.com>
Author
Parents
Loading