Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

@kofiarkoh
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant