Skip to content
Advertisement

directive to enable keyboard-navigation (using tab)

Hi I have this div which is skipped when we press tab, other UI elements come into focus but not this one, Which directive do I need to add to this so that it comes into focus when we navigate UI using keyboard

JavaScript

Advertisement

Answer

There are html elements without tabindex enabled by default, and the div element is one of these.

To enable it, you must set the tabindex attribute to something >= 0:

JavaScript

Here you can find more information.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement