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

Tabindex does not work #1209

Open
svivian opened this issue Sep 24, 2024 · 0 comments
Open

Tabindex does not work #1209

svivian opened this issue Sep 24, 2024 · 0 comments
Assignees
Labels

Comments

@svivian
Copy link

svivian commented Sep 24, 2024

Describe the bug
The tabindex attribute on elements is ignored.

To Reproduce
Example HTML, with the select element being enhanced by Choices.js:

<input type="text" tabindex="1">
<select tabindex="2">
  <option>Example</option>
</select>
<input type="text" tabindex="3">

Expected behavior
Pressing tab should go from the text input to the dropdown then the second text input. However it skips all elements enhanced by Choices.js. The outer div (class="choices") has tabindex="0" while the inner select element has tabindex="-1" (the latter is expected as the original select shouldn't be focusable).

The tab index should be copied across to the Choices element.

Choices version and bundle

  • Version: 11.0.2

Desktop (please complete the following information):

  • OS: MacOS
  • Browser Chrome, Firefox (latest)
@svivian svivian added the bug label Sep 24, 2024
@Xon Xon self-assigned this Sep 26, 2024
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