diff --git a/js/libs/ui-shared/src/select/SingleSelect.tsx b/js/libs/ui-shared/src/select/SingleSelect.tsx index b635c0ab3e..2087e817c6 100644 --- a/js/libs/ui-shared/src/select/SingleSelect.tsx +++ b/js/libs/ui-shared/src/select/SingleSelect.tsx @@ -55,7 +55,9 @@ export const SingleSelect = ({ }} {...props} onClick={toggle} - onOpenChange={(isOpen) => setOpen(isOpen)} + onOpenChange={(isOpen) => { + if (isOpen !== open) toggle(); + }} selected={selections} onSelect={(_, value) => { onSelect?.(value || "");