-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Components Menu and MenuItem doesn't work #1236
Comments
I'm getting the same problem here. The component is rendered but not visible |
👍 Same is happening here |
👍 |
Same for |
Well, it's working after I upgraded material-ui to latest version. |
@zachguo List and ListItem works fine in the latest version, I've even had to use those component instead of Menu and MenuItem because the bug. |
I've got a log in the console: |
It seems like you are using the old Menu and MenuItem components, I saw the same error log when I imported those components by mistake. Old components: import {Menu, MenuItem} from 'material-ui'; New components: import Menu from 'material-ui/lib/menus/menu';
import MenuItem from 'material-ui/lib/menus/menu-item'; Anyway the new ones don't work properly, so I suggest using List and ListItem for now. |
@eyscode Anyway thanks for your advice. |
I've updated to the latest version of material-ui (v0.10.3) and the new Menu component works fine now. It seems like the bug was fixed in #1281. I'm closing the issue, thanks for your time. |
this is still a problem. When you
it's still referencing the old material-ui/lib/menu/menu.js |
I am still seeing this problem with the latest Master branch build. This results in a length undefined error
This results in an invisible menu:
|
Dear developers! `Cuz i had the same stack |
Is there solution, please? I have same problem. |
Problem still, Any solution? |
After mui#1236, a few imports were remaining, remove those imports. Also use type `Omit` from typescript utility types. This will ensure zero direct references to `@material-ui/core`.
I've tried to use the new components Menu and MenuItem in a project as the website shows but I couldn't, when the component is rendered the menu is not visible and width is always 0, I thought it was a problem with styles of my project, so I tried to use it in clean tiny example just for seeing if it works or not, and sadly it doesn't.
This is the code:
As you can see it is the almost the same code as the example in the website demo, but the menu is not visible. What's the problem? Are the new Menu and MenuItem components already finished and ready for production? Thanks in advance.
The text was updated successfully, but these errors were encountered: