I'm having a bit of trouble with using react-bootstrap
's NavDropdown in my NavBar to display a list of data. Sometimes, the list extends beyond the view and gets cut off at the bottom. I want to add overflow: auto
to the list to make it scrollable, but I haven't found a way to do it without affecting react-bootstrap
's styling. Trying to wrap the NavDropdown or its items in a styled div disrupts the styling, and directly styling the NavDropdown via className
or style
also causes issues. Has anyone encountered this problem before and found a solution?
The code snippet I am working with looks like this:
<NavBar>
<NavBar.Collapse>
<Nav>
<NavDropdown>
lots of <MenuItem />
</NavDropdown>
</Nav>
</NavBar.Collapse>
</NavBar>