Skip to content

Commit

Permalink
fix for auto-suggest drop down non-closing issue
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
  • Loading branch information
paulstn committed Oct 10, 2023
1 parent f981407 commit ded9b8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions public/components/common/search/autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ export const Autocomplete = (props: AutocompleteProps) => {
})}
{...(panelsFilter && { append, fullWidth: true })}
disabled={isDisabled}
onBlur={() => {
setAutocompleteState({ ...autocompleteState, isOpen: false });
}}
/>
{autocompleteState.isOpen && !isSuggestionDisabled && (
<div
Expand Down

0 comments on commit ded9b8e

Please sign in to comment.