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