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

selecting elements won't work, if a parent element with tabindex=-1 exists #119

Closed
ghost opened this Issue Jun 14, 2012 · 3 comments

Comments

Projects
None yet
2 participants
@ghost

ghost commented Jun 14, 2012

this can easily be reproduced inside a jQuery dialog which is initialized with the attribute "tabindex=-1".

Selecting with Tab/Enter works fine, but clicking a list element will trigger the dialogs "focusin" event in FF & Chrome which results in canceling the dropdown before the onSelect-function is triggered.

setting tabindex=-1 on the ".select2-container" seems to resolve the problem

@ivaynberg

This comment has been minimized.

Contributor

ivaynberg commented Jun 15, 2012

can you please repro this in a jfiddle using js in master?

@ghost ghost closed this Jun 15, 2012

@ghost

This comment has been minimized.

ghost commented Jun 15, 2012

Looks like this commit already fixed it a few days ago, sorry: 2f3262d

@duleorlovic

This comment has been minimized.

duleorlovic commented May 12, 2017

I think this is still an issue.
Here is example https://jsfiddle.net/w9nqqhne/

This issue was closed.

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