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

Select2 v4 Cursor sticks to the control for multiselect #3546

Closed
sunalive opened this issue Jul 2, 2015 · 4 comments
Closed

Select2 v4 Cursor sticks to the control for multiselect #3546

sunalive opened this issue Jul 2, 2015 · 4 comments
Labels

Comments

@sunalive
Copy link

sunalive commented Jul 2, 2015

After clicking in multiselect with v4, the cursor does not leave the control. If clicked outside, the control shows up at the top-left of the page. Here are the results of various actions to focus out.

After clicking outside the element:
click-out

After pressing tab (to focus out):
tab-out

After clicking (focus) another field:
click-other

After clicking a different element (a different tab in this case):
click-element

@penihel
Copy link
Contributor

penihel commented Jul 2, 2015

Hello.

I had a similar problem.

In my case, the problem is because the "select2" creates the Dropdown elements always attached to the body element.

So I used the "dropdownParent" option assigning as div element parent of the select tag.

See on options:https://select2.github.io/options.html and search for "Dropdown"

@kevin-brown kevin-brown added the 4.x label Jul 4, 2015
@kevin-brown
Copy link
Member

Sounds like an interesting issue, is there a jsbin/jsfiddle where we can reproduce this issue at?

@sunalive
Copy link
Author

sunalive commented Jul 9, 2015

Forgot to mention that this issue is found only in IE (my version is 11). This is not found in Firefox or Chrome.

@kevin-brown
Copy link
Member

Forgot to mention that this issue is found only in IE (my version is 11).

Sounds like it may be related to #3300.

I recently fixed a focus war issue on master, but unfortunately that is currently failing to build on IE.

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

3 participants