iOS 15.0 and iOS 16.0 - Focus doesn't move to links (<a> element) when pressing tab/shift+tab in external keyboard

While pressing tab/shift+tab using external keyboard focus doesn't move to tag elements even with tabIndex=0.

This is my javascript code

<a href="https://discussions.apple.com/" tabIndex={0}>Click here</a>

Focus moves to all other html elements except link element.

Is it possible that 0 is adding the number 0 there instead of the string with quotes around it? (Like this tabIndex="0")

<a href="https://discussions.apple.com/" tabIndex="0">Click here</a>

Not sure if you are using a framework like React but the {} look like an expression to evaluate verses a string value.

Double check what it is showing as in the browser's element inspector as well.

iOS 15.0 and iOS 16.0 - Focus doesn't move to links (&lt;a&gt; element) when pressing tab/shift+tab in external keyboard
 
 
Q