Scrolling up after sidenav closing


Topic: Scrolling up after sidenav closing

pawled asked 3 years 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 3 years 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 commented 3 years ago

Are there other important differences between button and a?


Michał Duszak staff commented 3 years ago

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


Michał Duszak staff commented 3 years 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: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.10.2
  • Device: Any
  • Browser: Any
  • OS: Any
  • Provided sample code: No
  • Provided link: Yes