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

Dropdown will not close when clicking outside of the select #1623

Closed
roykho opened this issue Aug 17, 2013 · 3 comments
Closed

Dropdown will not close when clicking outside of the select #1623

roykho opened this issue Aug 17, 2013 · 3 comments

Comments

@roykho
Copy link

roykho commented Aug 17, 2013

Anyone else seeing this issue? When you click to open the dropdown, you must select something for the dropdown to close. It won't close if you click anywhere outside of it. Not sure if I missed a setting or something is not right...

@fk
Copy link
Member

fk commented Aug 17, 2013

Hmm, sounds like you haven't updated the CSS – I think the styles for .select2-drop-mask have changed from 3.4.1 to 3.4.2.

@roykho
Copy link
Author

roykho commented Aug 17, 2013

Thanks for that and it works in some context and not others...not too sure why yet. For example if I have select2 in WordPress Customizer, it won't close even with the latest CSS file. But it does work on normal conditions. But since my case is rare, I will close this...

@roykho roykho closed this as completed Aug 17, 2013
@ghost
Copy link

ghost commented Dec 9, 2014

Hi @splashingpixels, I had the same issue and here's a simple work around.
No very elegant but works fine :

$('#customize-controls').on('click' , function() { 
 $('select[data-customize-setting-link]').select2("close"); 
} );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants