0

I have products component which passes props to filters component thus filters component renders semantic-ui dropdowns filled up with passed props.

enter image description here

After change selection on some filter semantic sets state of dropdown to selected value.

enter image description here

"Clear all" button updates products and filters components but leaves dropdowns untouched as their state remains untouched. I've tried to pass into dropdowns some new custom props but didn't succeed.

Filters being rendered like so - enter image description here

So the question is - how to unset value of semantic's dropdown?

1 Answer 1

1

as I can see value prop on your dropDown isn't set. Without this prop set the component is uncontrolled, if you add this props instead, changing the state reference of the value will also reset your select.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.