From 90b24461b7a4197b4455abb2273d9dcfd7b1a104 Mon Sep 17 00:00:00 2001 From: oddvernes Date: Mon, 22 Apr 2024 14:23:24 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Autocomplete:=20show=20"no=20opt?= =?UTF-8?q?ions"=20on=20focus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/Autocomplete/Autocomplete.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/eds-core-react/src/components/Autocomplete/Autocomplete.tsx b/packages/eds-core-react/src/components/Autocomplete/Autocomplete.tsx index 3c8e29ea89..61cf6cd97e 100644 --- a/packages/eds-core-react/src/components/Autocomplete/Autocomplete.tsx +++ b/packages/eds-core-react/src/components/Autocomplete/Autocomplete.tsx @@ -735,10 +735,7 @@ function AutocompleteInner( (selectedItems.length > 0 || inputValue) && !readOnly && !hideClearButton const showNoOptions = - isOpen && - !availableItems.length && - inputValue.length > 0 && - noOptionsText.length > 0 + isOpen && !availableItems.length && noOptionsText.length > 0 const selectedItemsLabels = useMemo( () => selectedItems.map(getLabel),