Skip to content

Commit

Permalink
chore(react-components): fix tab
Browse files Browse the repository at this point in the history
  • Loading branch information
MarikTar committed Oct 24, 2024
1 parent 56e40d8 commit daa0336
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-components/src/hooks/use_autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,6 @@ export function useAutocomplete<

const handleClear = (event: React.SyntheticEvent) => {
event.preventDefault();
event.stopPropagation();

setSearchValue('');
const newValue = (multiple ? [] : null) as AutocompleteValue<T, Multiple>;
Expand Down Expand Up @@ -548,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 daa0336

Please sign in to comment.