From 5e3e078be57ae32c05a01c23ccbbcbf3bd802c65 Mon Sep 17 00:00:00 2001
From: "Nicolas F. Chaves de Plaza" <nchaves@graphpolaris.com>
Date: Wed, 5 Feb 2025 21:15:44 +0000
Subject: [PATCH] fix(inputs-dropdown): options set regardless of autocomplete
 mode

---
 src/lib/components/inputs/DropdownInput.tsx | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/lib/components/inputs/DropdownInput.tsx b/src/lib/components/inputs/DropdownInput.tsx
index e9c125662..f85718699 100644
--- a/src/lib/components/inputs/DropdownInput.tsx
+++ b/src/lib/components/inputs/DropdownInput.tsx
@@ -76,10 +76,8 @@ export const DropdownInput = ({
   const [filteredOptions, setFilteredOptions] = React.useState<(string | number | { [key: string]: string })[]>(options);
 
   useEffect(() => {
-    if (autocomplete) {
       setFilteredOptions(options);
-    }
-  }, [options, autocomplete]);
+  }, [options]);
 
   const handleInputChange = (e: string) => {
     const inputValue = e.toLowerCase();
-- 
GitLab