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

A way to empty selected list after, I change items list #155

Open
faouzi-Lakhlifi opened this issue Jun 12, 2019 · 2 comments
Open

A way to empty selected list after, I change items list #155

faouzi-Lakhlifi opened this issue Jun 12, 2019 · 2 comments

Comments

@faouzi-Lakhlifi
Copy link

Even when I pass the selectedItems prop as a state, and then empty it, it does not re-render.
I want the selectedItems to empty out when I change the itemsList after a fetch call

thanx in advance

@faouzi-Lakhlifi
Copy link
Author

faouzi-Lakhlifi commented Jun 12, 2019

the list starts out full
items1

but when I make fetch call following user's choices, I change the the itemsList
items2

I want to reset the selecteditemeslist, even though it shows says none Selected, and when I check the selected i find empty, the html for the selected does not reflect that

@liorheber
Copy link
Collaborator

@faouzi-Lakhlifi thank you for your issue.
Please see the response for this here: #156

You are also welcomed to issue a solution if our timeline doesn't work for you. We would love to have you contribute!

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

2 participants