mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-24 18:31:16 +01:00
Fix extra dropdown element
This commit is contained in:
@@ -54,12 +54,12 @@ export function Dropdown({ children, items }: DropdownProps) {
|
||||
}, [ref.current, open]);
|
||||
|
||||
return (
|
||||
<div className="pointer-events-auto">
|
||||
<>
|
||||
{child}
|
||||
{open && triggerRect && (
|
||||
<Menu items={items} triggerRect={triggerRect} onClose={handleClose} />
|
||||
)}
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user