Skip to content

Commit

Permalink
add correct dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
joduplessis committed Jun 13, 2024
1 parent ce41082 commit 853bdfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/select/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ export const Select = (props: SelectProps) => {

// opens the list when mounted
useEffect(() => {
if (!visible) show()
if (!visible && openOnMount) show()
}, [openOnMount])

return (
Expand Down

0 comments on commit 853bdfb

Please sign in to comment.