File tree Expand file tree Collapse file tree
src/hooks/useMultipleSelection Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -587,6 +587,10 @@ It is required to pass either `selectedItem` or `index` to
587587
588588Optional properties:
589589
590+ - ` disabled ` : If this is set to true, then no event handlers will be returned
591+ from ` getSelectedItemProps ` and a ` disabled ` prop will be returned
592+ (effectively disabling ` Delete ` and ` Backspace ` keys events).
593+
590594- ` ref ` : if you need to access the dropdown element via a ref object, you'd call
591595 the function like this: ` getDropdown({ref: yourDropdownRef}) ` . As a result,
592596 the dropdown element will receive a composed ` ref ` property, which guarantees
Original file line number Diff line number Diff line change @@ -678,10 +678,11 @@ export interface UseMultipleSelectionActions<Item> {
678678 setActiveIndex : ( index : number ) => void
679679}
680680
681- export type UseMultipleSelectionReturnValue < Item > =
682- UseMultipleSelectionState < Item > &
683- UseMultipleSelectionPropGetters < Item > &
684- UseMultipleSelectionActions < Item >
681+ export type UseMultipleSelectionReturnValue <
682+ Item
683+ > = UseMultipleSelectionState < Item > &
684+ UseMultipleSelectionPropGetters < Item > &
685+ UseMultipleSelectionActions < Item >
685686
686687export interface UseMultipleSelectionInterface {
687688 < Item > (
You can’t perform that action at this time.
0 commit comments