material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

Menu falls on no menuItems

Open deser opened this issue 11 years ago • 4 comments

By default selectedIndex is 0, but if there is no data (menuItems) component Menu falls: https://monosnap.com/image/HmoqBhIia0HdoXWJjGtCjlKs83Hg3l

deser avatar Jan 13 '15 13:01 deser

This is no longer an issue; I just rebuilt the docs locally with an empty array for one of the menus. The Menu is created successfully. However, an empty 8px padded div is created. Do we want to open a separate issue so that the menu is not visible if its menuItems array is empty?

jkruder avatar Mar 21 '15 14:03 jkruder

I think no.

deser avatar Mar 21 '15 15:03 deser

Have you pulled the latest master and built that?

jkruder avatar Mar 23 '15 21:03 jkruder

@jkruder is right that this is no longer an issue. When no menuItems are present an empty padded div is created as he mentions as well. I'm closing this issue. @deser if you would prefer that the empty div is not visible, please open a seperate issue. Thank you!

mmrtnz avatar May 15 '15 04:05 mmrtnz