From 12f800913b6f2fde9f7838ce0237c81a886c9a59 Mon Sep 17 00:00:00 2001 From: Arvid Norlin Date: Fri, 31 May 2024 14:28:29 +0200 Subject: [PATCH] update Select deps array --- components/TempDesignSystem/Form/Select/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/TempDesignSystem/Form/Select/index.tsx b/components/TempDesignSystem/Form/Select/index.tsx index 4c7445824..2319daa8a 100644 --- a/components/TempDesignSystem/Form/Select/index.tsx +++ b/components/TempDesignSystem/Form/Select/index.tsx @@ -21,7 +21,6 @@ export default function Select({ "aria-label": ariaLabel, items, label, - // name, onSelect, placeholder, value, @@ -31,7 +30,8 @@ export default function Select({ const [rootDiv, setRootDiv] = useState(null) useEffect(() => { setRootDiv(ref.current) - }, [ref]) + }, [setRootDiv]) + function handleOnSelect(key: Key) { onSelect(key) }