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) }