-
Notifications
You must be signed in to change notification settings - Fork 12
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
Customize dropdown container #7
Comments
Is it SubMenuItem that you're using? Did you try its |
|
The Dropdown component is meant to be used with SubMenuItem or MenuButton (which both use react-float-anchor to create a floating element with a z-index property for the Dropdown to be rendered into). Dropdown isn't meant to be used on its own. |
The following screenshot shows div which I need to customize I`m rendering menu this way, and it works renderMenu(menu) {
return <Dropdown>
<MenuList>
{
menu.map(item => item.children ? this.renderSubmenu(item) : this.renderMenuItem(item))
}
</MenuList>
</Dropdown>;
}
renderSubmenu(submenu) {
return <SubMenuItem key={submenu.id}>
// children
</SubMenuItem>;
}
renderMenuItem(item) {
return <MenuItem key={item.id}>
// children
</MenuItem>;
} I`m having multilevel menu |
What component is that element? Only MenuButton and SubMenuItem contain an element with position:fixed if I remember right, so if that element is a react-menu-list component, I assume it's one of those. You can use the |
I'm closing the issue because I don't believe there's a problem with react-menu-list here. Feel free to reply if you still need help. |
It is not possible to add any styles or classes to the very first wrapper of dropdown menu. I`m having an issue, when I need to change menu zIndex, because it is hidden by page contents
The text was updated successfully, but these errors were encountered: