Skip to content

Commit

Permalink
React-components: Fix showing dropdown when click clear button (#164)
Browse files Browse the repository at this point in the history
* chore(react-components): fix showing dropdown

* chore(react-components): fix tab
  • Loading branch information
MarikTar authored Oct 25, 2024
1 parent 2fbc9ef commit 3c1e8fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-components/src/hooks/use_autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,8 @@ export function useAutocomplete<
};

const handleTagDelete = (option: T, index: number) => (event: React.SyntheticEvent) => {
event.preventDefault();

selectNewValue(event, option, index, 'removeOption');
};

Expand Down

0 comments on commit 3c1e8fc

Please sign in to comment.