chakra-ui-autocomplete
chakra-ui-autocomplete copied to clipboard
Duplicating values on unselecting when initial value is given
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:
- 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.
Hi! I'm experiencing the same issue. Any updates on this?
going to take a look at this.