Can't get responsive collapsing to work


Topic: Can't get responsive collapsing to work

pro premium priority asked a year ago

Expected behavior

Can't get responsive collapsing to work, have copied your example code (Basic example),react. Doesn't seem to work on your example in the documentation either.

https://mdbootstrap.com/docs/react/navigation/navbar/

Actual behavior enter image description here Resources (screenshots, code snippets etc.)


Mateusz Lazaru staff commented a year ago

There is a bug in docs indeed, I've added a task to fix it. But when I copied the code to the clean react project, it works fine.

Changing show in line <MDBCollapse navbar show={showBasic}> correctly changes the collapse state.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 6.2.0
  • Device: -
  • Browser: Firefox
  • OS: Windows 11
  • Provided sample code: No
  • Provided link: Yes
Tags