Resetting values after submitting #28
Unanswered
tbeckett1211
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After submitting, I change the values of what is selected back to an empty array but the component still shows all of the previously selected options. How do i reset or clear programmatically? The only thing I have got to work is setting a key state, passing it in as a prop and then changing the value of key with setKey but I find that very messy. Any thoughts or am I missing something? Love the component by the way! =)
Beta Was this translation helpful? Give feedback.
All reactions