On the right side of react-bootstrap's Navbar, there is a Dropdown menu:
<Nav className="container-fluid justify-content-end">
<NavDropdown alignRight title="Dropdown" flip>
<NavDropdown.Item href="#action/1">Apply Coupon</NavDropdown.Item>
<NavDropdown.Item href="#action/2">Change Password</NavDropdown.Item>
<NavDropdown.Divider />
<NavDropdown.Item href="#action/4">Logout</NavDropdown.Item>
</NavDropdown>
</Nav>
Despite following suggestions like using alignRight
and flip
, the items in my dropdown menu are overflowing:
https://i.sstatic.net/gIIUP.png
I am currently using bootstrap 5.1.1 and react-bootstrap 1.6.3. How can I address this overflow issue?
UPDATE: The menu displays correctly in the sandbox environment, but it overflows in all browsers I have tested (Opera, Chrome, Firefox). I have raised an issue. In the meantime, I would appreciate any temporary workarounds.