I m using the DropdownSelect Currency in the examples, after i search using 'a' or 'o' in the search box it will update the item in the list but when i delete it, the item still wont go back to the initial Item.
i think it's because in use-search.ts it will only run when there is a searchValue
useEffect(() => { if (searchValue) { onSearch(searchValue); } }, [onSearch, searchValue]);
typing space will reset the item, but i want it to reset when the user delete the searchValue. Is there anyway to achieve this?
Originally posted by @mripqi in #95