You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
#96
Closed
kofiarkoh opened this issue
Dec 1, 2024
· 0 comments
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?
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
The text was updated successfully, but these errors were encountered: