Closed DrPolymath closed 1 month ago
Edit the file DropDown.js
and modify Line 29 to
} else {
setDisplayValue('');
}
Thank you!
Thanks @murilolima Above solution worked well. Do you have any plan to add this to next release.
Please add a way to clear the input value. I know you're working on a new version of this package but there are various improvements that could be made while we wait, this being one of them!
Thanks @fateh999
Hello, I really need help in this matter. In my project, I have created 2 dropdown. The option list of the second dropdown is based on what user selected in the first dropdown. So supposedly, the selected item in the second dropdown should be cleared every time the selected item in the first dropdown change. How should I do that? I have tried this approach but it doesnt work.
const [showDropDown1, setShowDropDown1] = useState(false); const [showDropDown2, setShowDropDown2] = useState(false);
return (