Material-ui: Invalid prop `children` of type `array` supplied to `Popover`

Created on 11 Dec 2015  路  4Comments  路  Source: mui-org/material-ui

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,

Most helpful comment

@davidlashlee Popover should have a root element. wrap them around a div and try again.

All 4 comments

@davidlashlee Popover should have a root element. wrap them around a div and try again.

@oliviertassinari Yup

@davidlashlee Thanks for reporting this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

revskill10 picture revskill10  路  3Comments

zabojad picture zabojad  路  3Comments

ericraffin picture ericraffin  路  3Comments

sys13 picture sys13  路  3Comments

reflog picture reflog  路  3Comments