Small tweaks

This commit is contained in:
Gregory Schier
2023-04-09 15:32:13 -07:00
parent 4163bebe3b
commit 4dddfc0cc5
3 changed files with 6 additions and 31 deletions

View File

@@ -257,6 +257,8 @@ const Menu = forwardRef<Omit<DropdownRef, 'open' | 'isOpen'>, MenuProps>(functio
[items],
);
if (items.length === 0) return null;
return (
<Portal name="dropdown">
<FocusTrap>