Skip to content

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

@kofiarkoh

Description

@kofiarkoh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions