Scrolling up after sidenav closing


Topic: Scrolling up after sidenav closing

pawled pro premium priority asked 5 months ago

https://mdbootstrap.com/snippets/standard/pawled/3658563 When the sidenav is opened and page scrolled down, its closing (sidenav) always causes scrolling to the top. How to disable this feature?


Michał Duszak staff answered 5 months ago

There was some strange issue with focus. I fixed it by changing one of the buttons to a. Here is the snippet: https://mdbootstrap.com/snippets/standard/m-duszak/3662032


pawled pro premium priority commented 5 months ago

Are there other important differences between button and a?


Michał Duszak staff commented 5 months ago

There isn't as far as I know. You can add attribute role="button" to this for semantics.


Michał Duszak staff commented 5 months ago

There isn't as far as I know. You can add attribute role="button" to this for semantics.


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 Standard
  • MDB Version: MDB5 3.10.2
  • Device: Any
  • Browser: Any
  • OS: Any
  • Provided sample code: No
  • Provided link: Yes