when passing in an array of jsx components into Popover, I get a warning saying its an invalid prop type.
<Popover> {arrayOfJSXComponents} </Popover>
Warning: Failed propType: Invalid propchildrenof typearraysupplied toPopover, expectedobject. Check the render method ofToolbar``
Still seems to work just fine though, I'm assuming proptypes for Popover only allows object and not object or array?
Is this intentional and I'm misusing the component?
Thanks,
@davidlashlee Popover should have a root element. wrap them around a div and try again.
I think that we should have node here https://github.com/callemall/material-ui/blob/master/src/popover/popover.jsx#L27.
@oliviertassinari Yup
@davidlashlee Thanks for reporting this.
Most helpful comment
@davidlashlee Popover should have a root element. wrap them around a div and try again.