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

Labels of MultiSelectCard's don't update when changed #5

Open
spig0t opened this issue Apr 6, 2022 · 4 comments
Open

Labels of MultiSelectCard's don't update when changed #5

spig0t opened this issue Apr 6, 2022 · 4 comments

Comments

@spig0t
Copy link

spig0t commented Apr 6, 2022

I'm changing the label for a MultiSelectCard within a setState call within the MultiSelectContainer's onChange call. When I debug, I can see that build is being called, and a new MultiSelectContainer is being created, with the relevant MultiSelectCard being given the new value for its value, yet the UI doesn't change and still shows the old value (and presumably is still somehow showing the old MultiSelectCard even though I can see a new one was created with the correct new value).

@spig0t
Copy link
Author

spig0t commented Apr 6, 2022

Ah, just to be clear - the label for the MultiSelectCard is what is changed, and while build runs and the whole MultiSelectContainer and all MultiSelectCard's are re-created, somehow the old label still shows.

@spig0t
Copy link
Author

spig0t commented Apr 6, 2022

Setting the MultiSelectContainer's key to a new value each time something is changed seems to workaround this issue, but it's still not clear why this is necessary to me ...?

@CodeFoxLk
Copy link
Owner

have you tested this with the newest version?

@AG-Akash09
Copy link

In the latest version still this issue is present.

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

No branches or pull requests

3 participants