update Select deps array

This commit is contained in:
Arvid Norlin
2024-05-31 14:28:29 +02:00
parent ba644a2c89
commit 12f800913b

View File

@@ -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<HTMLDivElement | null>(null)
useEffect(() => {
setRootDiv(ref.current)
}, [ref])
}, [setRootDiv])
function handleOnSelect(key: Key) {
onSelect(key)
}