also call onToggle on open changed (#33813)
fixes: #31415 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
c4d6979907
commit
624817bdc1
1 changed files with 3 additions and 1 deletions
|
@ -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 || "");
|
||||
|
|
Loading…
Reference in a new issue