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

Suggestions weird focus behavior #77

Open
Zecat opened this issue Jun 26, 2017 · 2 comments
Open

Suggestions weird focus behavior #77

Zecat opened this issue Jun 26, 2017 · 2 comments
Labels

Comments

@Zecat
Copy link

Zecat commented Jun 26, 2017

The paper-item used to display the suggestions implement IronControlState so they have a tabindex="0" while your element destroys them once the input is blurred.

The result is when suggestions are displayed and the input is focused and the user hit TAB, the first paper-item is focused then quickly deleted and focus is in limbo.

I don't know so much about accessibility in combo box but anyway, suggestions are not currently focusable so you could set tabindex="-1" or not to use paper-item at all so the next input can be naturally selected.

@jhuesos
Copy link
Collaborator

jhuesos commented Jun 26, 2017

I will need to come back to you, but that tab-index strange behavior is because of accessibility. But I never got it completely right because when you try to use any screen reader, the selected option is not always announced properly.

@Zecat
Copy link
Author

Zecat commented Jun 26, 2017

I see, maybe you could use iron-a11y-announcer for that.

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

No branches or pull requests

2 participants