Sean Lindo
Sean Lindo

Reputation: 1437

Tabbing does not work in a chrome extension

I am trying to build a simple login form in a chrome extension. In my popup.html, I have a few input fields that have their corresponding tabindex values set. The username field has the autofocus property set through HTML or $('#myelement').focus() (I've tried both methods).

For some reason, tabbing does not work on my form when I first click the button next to the omnibar to open the popup. The username field has focus, but pressing the tab key makes the cursor disappear. It only shows up again if I explicitly click one of the input fields and then tab over, but never when they popup first opens.

<input type="text" id="one" tabindex=1 autofocus />
<input type="text" id="two" tabindex=2 />

If I open popup.html in a web browser (and not the extension), I've noticed that the tabbing in my form works perfectly.

Upvotes: 0

Views: 125

Answers (1)

pimvdb
pimvdb

Reputation: 154818

This is a regression, which has a bug filed here. Unfortunately it has been around for quite some time now, and there doesn't seem any progress on it.

There is no known scriptable workaround for this bug.

Upvotes: 1

Related Questions