You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When option is selected, selectedItems, provided by useMultipleSelection hook, will have some random group and not the selected option. Also, selectedItem, provided by useSelect hook will be an object with some random group too.
Reproduction repository:
This issue is reproduced in the codeSandbox example mentioned above.
The text was updated successfully, but these errors were encountered:
As far as I can see, you probably need to pass a indexStart to DropdownOptions component in order to tell it from where to start numbering the index it is going to pass to useSelect. In index: index + 0, that 0 should be the indexStart.
downshift
version: 5.4.6Relevant code or config
CodeSandbox example: https://codesandbox.io/s/multiple-selection-hook-downshift-2mu7t?file=/src/Multidropdown.jsx
What you did:
Tried to create multi dropdown component using
useSelect
anduseMultipleSelection
hooks by passing items sorted in groups.Structure of the passed data:
Problem description:
When option is selected,
selectedItems
, provided byuseMultipleSelection
hook, will have some random group and not the selected option. Also,selectedItem
, provided byuseSelect
hook will be an object with some random group too.Reproduction repository:
This issue is reproduced in the codeSandbox example mentioned above.
The text was updated successfully, but these errors were encountered: