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

[Bug]: Checkbox Options plugin doesn't tab correctly #710

Open
davidchan125 opened this issue Apr 9, 2024 · 0 comments
Open

[Bug]: Checkbox Options plugin doesn't tab correctly #710

davidchan125 opened this issue Apr 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@davidchan125
Copy link

davidchan125 commented Apr 9, 2024

Bug description

I created a TomSelect with the following options from the Checkbox Options plugin. Tabbing from this TomSelect appears to move focus to the end of the page and not to the next element in the tab order.

At the end of the GIF animation, the tab to the green button is a Shift + Tab backwards, after the focus appeared to move to the end of the page.

new TomSelect('#ex-checkbox-options',{
	plugins: {
		'checkbox_options': {
			'checkedClassNames':   ['ts-checked'],
			'uncheckedClassNames': ['ts-unchecked'],
		}
	},
});

TomSelect Checkbox Options plugin bug 090424

Expected behavior

Tabbing from the TomSelect w/ Checkbox Options plugin moves focus to the next element in the tab order. Using the GIF for context, focus should move to the Optgroup Columns TomSelect example.

Steps to reproduce

https://codepen.io/dc125/pen/GRLdgdo

Additional context

  • OS: MacOS Sonoma 14.2.1
  • Browser: Firefox 124.0.2, Safari 17.2.1
  • Version: Tom Select 2.3.1 (latest at time of ticket)
  • Device: MacBook Pro 13-inch 2018
@davidchan125 davidchan125 added the bug Something isn't working label Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant