MDBSideNav in react Typescript doesn't work


Topic: MDBSideNav in react Typescript doesn't work

tonis2 asked 2 years ago

Expected behavior

Actual behavior Burger menu doesn't work properly, if the window is small and breakWidth triggered then if i click the burger menu the sideNav doesn't appear.

Resources (screenshots, code snippets etc.)

enter link description here


Piotr Glejzer staff commented 2 years ago

it only doesn't work in typescript? Did you use it without ts?


tonis2 commented 2 years ago

If i save the file as .tsx it doesn't work if i save it at js and copy past your sample it's working


Piotr Glejzer staff commented 2 years ago

Sorry about that. I added a task to fix it with ts.


tonis2 commented 2 years ago

it's working now ? Just need to update the version ?


Piotr Glejzer staff commented 2 years ago

we didn't update a package yet. Probably the next Monday.


It doesnt work for me either - pure react.Why it is not better explained in docs how to get hamburger menu up an running?Why are your examples buggy? https://mdbootstrap.com/previews/docs/latest/html/skins/cyan-skin.html#try to click on burger menu miltiple times.Why dont you rewrite all provided materials to classless React?Are you even keeping up this library? What for did we pay the money?


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: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.27.0
  • Device: All
  • Browser: All
  • OS: All
  • Provided sample code: No
  • Provided link: Yes