Comments (6)
Is it SubMenuItem that you're using? Did you try its menuZIndex
prop?
from react-menu-list.
Dropdown
or MenuList
whatever it is, the first div with absolute coordinates for menu
from react-menu-list.
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.
from react-menu-list.
The following screenshot shows div which I need to customize
I`m rendering menu this way, and it works
On which component should I add your prop?
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
from react-menu-list.
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 menuZIndex
prop on those.
from react-menu-list.
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.
from react-menu-list.
Related Issues (16)
- Version of MenuButton that allows focus to be inside dropdown needed
- In TypeScript definitions, MenuEvent and ChosenEvent are not exported HOT 1
- accessKey and TabIndex attribute not supporting for MenuButton and MenuItem
- auto call onWillClose() at first click MenuButton issue
- keep menu open after selecting menu item -- multi-select HOT 1
- Styling parent div. HOT 2
- Option to render menu with display:none when closed?
- Uncaught error at Object.onRightPushed on "right arrow key" click on the subMenuItem HOT 3
- Is there a way to stopPropagation MenuItem's onItemChosen? HOT 2
- ButtonComponent prop Capitalised HOT 1
- Portal Error on dropdown button click HOT 2
- Is compatibility between versions 6 and 7 a goal of this library?
- Allow customisation of div elements used as anchor inside SubMenuItem HOT 3
- Better Dropdown/MenuButton API HOT 1
- toggle does not work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-menu-list.