react-spectrum
6b3aa588 - Adding an option to control if onSelectionChange fires when the selected key doesn't change (#2618)

Commit
3 years ago
Adding an option to control if onSelectionChange fires when the selected key doesn't change (#2618) * making onSelectionChange only fire when the selected key is changing in highlight selection onSelectionChange will continue to fire even if the new selected key is the same for Tabs, ComboBox, ActionGroup, Picker, and other components that disallowEmptySelection. Highlight selection for TableView and ListView will not fire onSelectionChange unless selection is actually changing meaning that pressing Enter/Space or clicking on the currently selected row wont fire an extra onSelectionChange event * addressing review comments * removing extra space * updating prop name to allowDuplicateSelectionEvents
Author
Parents
Loading