From daa033611a63c5c9fef8f073e9f76c35499e9cbe Mon Sep 17 00:00:00 2001 From: mariktar <100trk@gmail.com> Date: Thu, 24 Oct 2024 17:57:28 +0300 Subject: [PATCH] chore(react-components): fix tab --- packages/react-components/src/hooks/use_autocomplete.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-components/src/hooks/use_autocomplete.ts b/packages/react-components/src/hooks/use_autocomplete.ts index c9a9569b..2d53063b 100644 --- a/packages/react-components/src/hooks/use_autocomplete.ts +++ b/packages/react-components/src/hooks/use_autocomplete.ts @@ -467,7 +467,6 @@ export function useAutocomplete< const handleClear = (event: React.SyntheticEvent) => { event.preventDefault(); - event.stopPropagation(); setSearchValue(''); const newValue = (multiple ? [] : null) as AutocompleteValue; @@ -548,6 +547,8 @@ export function useAutocomplete< }; const handleTagDelete = (option: T, index: number) => (event: React.SyntheticEvent) => { + event.preventDefault(); + selectNewValue(event, option, index, 'removeOption'); };