fix Combobox onBackdropClick
This commit is contained in:
parent
cef915143d
commit
e6ecca46b6
@ -65,9 +65,8 @@ const ComboBoxPure = (props: ComboboxProps) => {
|
||||
|
||||
if (ref.current && ref.current.contains(target)) return;
|
||||
|
||||
if (onToggle) return;
|
||||
if (onToggle && !withBackdrop) return;
|
||||
|
||||
// onToggle?.(e, !isOpen);
|
||||
setIsOpenItemAccess?.(!isOpen);
|
||||
setIsOpen((v) => {
|
||||
return !v;
|
||||
|
Loading…
Reference in New Issue
Block a user