chakra-ui-autocomplete icon indicating copy to clipboard operation
chakra-ui-autocomplete copied to clipboard

Duplicating values on unselecting when initial value is given

Open matheusmb opened this issue 4 years ago • 2 comments

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:

  1. Open the code sandbox
  2. Try to unselect "United States" through the dropdown list multiple times
  3. 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.

matheusmb avatar Jun 28 '21 16:06 matheusmb

Hi! I'm experiencing the same issue. Any updates on this?

datejer avatar Jun 16 '22 14:06 datejer

going to take a look at this.

koolamusic avatar Jun 17 '22 00:06 koolamusic