Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicating values on unselecting when initial value is given #51

Open
matheusmb opened this issue Jun 28, 2021 · 2 comments
Open

Duplicating values on unselecting when initial value is given #51

matheusmb opened this issue Jun 28, 2021 · 2 comments

Comments

@matheusmb
Copy link

matheusmb commented 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:

  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 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
@datejer
Copy link

datejer commented Jun 16, 2022

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

@koolamusic
Copy link
Owner

going to take a look at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants