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
I found an unexpected behavior when some initial state is given to the component. I created this Code Sandbox where you can notice the bug:
Open the code sandbox
Try to unselect "United States" through the dropdown list multiple times
Randomly add/unselect other countries
You will notice that the tag list has many duplicated entries. I also tried using uncontrolled mode (not passing selectedItems prop) and using initialSelectedItems or defaultSelectedItems and neither worked.
Thank you.
The text was updated successfully, but these errors were encountered:
matheusmb
changed the title
Duplicating values on selected when initial value is given
Duplicating values on unselecting when initial value is given
Jun 28, 2021
Hi,
I found an unexpected behavior when some initial state is given to the component. I created this Code Sandbox where you can notice the bug:
You will notice that the tag list has many duplicated entries. I also tried using uncontrolled mode (not passing
selectedItems
prop) and usinginitialSelectedItems
ordefaultSelectedItems
and neither worked.Thank you.
The text was updated successfully, but these errors were encountered: