From 853bdfbc8a9bb16094e2bcf90a04e563ae00a524 Mon Sep 17 00:00:00 2001 From: Jo du Plessis Date: Thu, 13 Jun 2024 10:29:52 +0200 Subject: [PATCH] add correct dependency --- packages/core/src/select/select.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/select/select.tsx b/packages/core/src/select/select.tsx index f978e1aa..a037937a 100644 --- a/packages/core/src/select/select.tsx +++ b/packages/core/src/select/select.tsx @@ -340,7 +340,7 @@ export const Select = (props: SelectProps) => { // opens the list when mounted useEffect(() => { - if (!visible) show() + if (!visible && openOnMount) show() }, [openOnMount]) return (