sforkowany z mirror/soapbox
Improve DropdownMenu API
rodzic
20ccd26a6e
commit
9dde71716f
|
@ -271,6 +271,10 @@ const DropdownMenu = (props: IDropdownMenu) => {
|
|||
};
|
||||
}, [refs.floating.current]);
|
||||
|
||||
if (items.length === 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
{children ? (
|
||||
|
|
Ładowanie…
Reference in New Issue