-
Notifications
You must be signed in to change notification settings - Fork 54
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
selectedItems not updating based on changes from state #156
Comments
Hi @dannysun2 It seems that we've never implemented the component as a controlled component, meaning that the selectedItems is basically used for initialization at this point. I can't commit on a timeline at this point for a fix so I'd like to encourage you to contribute a solution to this. Please let me know if you're interested in issuing a PR. Otherwise, I hope we can get someone on this a little later in the future. Thanks again! |
Controlled component feature implemented in #160 |
As fix was pushed , I close thread |
Expected Behavior
Removing names (state.options) from list via onclick results in a re-render should result in an updated selectedItems list to reflect the changes from the state.
https://github.com/dannysun2/react-multi-select
Actual Behavior
While the component re-renders, the selectedItems list fails to reflect the new state changes.
Steps to Reproduce the Problem
The text was updated successfully, but these errors were encountered: