webshapers priority asked 3 days ago


Hi,

I've noticed that every .sidenav-link in my project has tabindex="1" injected automatically. I'm curious to know if there's a specific reason for this behavior.

It seems to be affecting keyboard navigation. Because of this, the natural tab order isn't working as expected, and it's making keyboard navigation through the sidenav challenging (in my case: impossible).

Is this intended behavior, or is there a way to prevent tabindex="1" from being added to .sidenav-link elements? Any guidance on how to resolve this issue would be greatly appreciated.

Thank you!


Grzegorz Bujański staff answered 2 days ago


Can you create a snippet where the tab order is incorrect?

The focus trap option requires tab index to be set. You can set data-mdb-focus-trap=" false" to disable focus trap option.



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

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 7.3.2
  • Device: Desktop
  • Browser: Chrome
  • OS: OSX
  • Provided sample code: Yes
  • Provided link: No