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

4.0.0-rc2 Selecting nothing with a multiselect placeholder prevents dropdown from closing in IE. #3257

Closed
NicoNet opened this issue Apr 13, 2015 · 4 comments

Comments

@NicoNet
Copy link

NicoNet commented Apr 13, 2015

To reproduce
Using IE11
http://jsfiddle.net/emwgujt5/1/

Click the first dropdown, it opens, do not select anything then click the next drop down. The first does not close, the second will not close either unless something is selected.

removing
placeholder: "[ALL]",
from the JS fixes the issue.

I'd expect the previous to collapse and put the placeholder in the box.
This is an IE Only issue. This issue is not encountered in Opera, FireFox, Safari, or Chrome.
This test page loads jQuery and Select2, nothing else.

@NicoNet NicoNet changed the title Selecting nothing with a multiselect placeholder prevents dropdown from closing in IE. 4.0.0-rc2 Selecting nothing with a multiselect placeholder prevents dropdown from closing in IE. Apr 13, 2015
@Masaroth
Copy link

Having the same issue with IE as well, It also causes problems with modal windows as the dropdown hangs around even after the modal is closed.

Replication
See http://jsfiddle.net/vmLjdv3L/14/
Click the button, click into the select2 box to open dropdown, close modal

@kevin-brown
Copy link
Member

What versions of IE are affected (aside from IE11)? And are there any that don't have the issue?

@Masaroth
Copy link

I have just given it a quick test, and it appears the issue is only with IE10 and IE11(Edge) . It does not affect older versions as the placeholder text does not appear in the first place.

@kevin-brown
Copy link
Member

Merged into #3300.

@select2 select2 locked and limited conversation to collaborators Jul 16, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants