Improve DropdownMenu API
This commit is contained in:
@ -271,6 +271,10 @@ const DropdownMenu = (props: IDropdownMenu) => {
|
||||
};
|
||||
}, [refs.floating.current]);
|
||||
|
||||
if (items.length === 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
{children ? (
|
||||
|
||||
Reference in New Issue
Block a user