Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iron-control-state: add tabindex to hostAttributes #34

Open
bendavis78 opened this issue Oct 3, 2015 · 2 comments
Open

iron-control-state: add tabindex to hostAttributes #34

bendavis78 opened this issue Oct 3, 2015 · 2 comments

Comments

@bendavis78
Copy link

I'm assuming the point of iron-control-state is to make an element "focusable". If that's true, then the element must have a tabindex attribute. Otherwise, the browser does not consider the item focusable and won't fire the focus event. Knowing that, shouldn't elements implementing iron-control-state always have a tabindex attribute? Or is this omitted on purpose?

@cdata
Copy link
Contributor

cdata commented Oct 20, 2015

Unfortunately, we cannot do this right away. We have some elements that depend on not getting automatic focusability from IronControlState (iron-autogrow-textarea, paper-input as two examples). However, this seems like a reasonable thing for us to shoot for.

@cdata cdata self-assigned this Oct 20, 2015
@cdata cdata removed their assignment Jan 27, 2016
@rslawik
Copy link
Contributor

rslawik commented Feb 1, 2018

We cannot have tabindex in hostAttributes due to the difference between no tabindex attribute and tabindex="-1".
See: #76 and #78.
fyi @notwaldorf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants