Topic: Responsive menu stopped expanding after upgrading the UI kit
PixelNinja
free
asked 3 weeks ago
Our existing navbar worked before the dependency update. The toggle handler still runs, but the collapse element does not open.
Has its controlled visibility API changed?
Mateusz Lazaru
staff
answered 2 weeks ago
Connect the menu's boolean state to MDBCollapse using open={menuOpen}. Replace show={menuOpen} if it is still present, while retaining navbar and the existing click handler. This addresses the case where the toggle changes state but the menu stays collapsed.
If this does not resolve it, share the complete collapse JSX and CSS imports. Also include any navbar wrapper and custom display or height rules so we can distinguish a state-wiring problem from a styling conflict.
https://mdbootstrap.com/docs/react/navigation/navbar/
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB React
- MDB Version: MDB5 9.0.0
- Device: Desktop
- Browser: Firefox
- OS: Windows 11
- Provided sample code: No
- Provided link: No