fix Combobox onBackdropClick

This commit is contained in:
namushka 2024-04-18 11:41:12 +03:00
parent cef915143d
commit e6ecca46b6

View File

@ -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;