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

overlap drop down box if click outside browser window #3119

Open
keepcalm15 opened this issue May 18, 2021 · 0 comments
Open

overlap drop down box if click outside browser window #3119

keepcalm15 opened this issue May 18, 2021 · 0 comments

Comments

@keepcalm15
Copy link

Dear developer,

We tried to set up two select that use chosen plugin.
A similar page can be seen
https://makitweb.com/make-user-friendly-select-element-with-chosen-jquery/

from Initialize section from above link (OS: windows 7. chrome)

  1. click multiple select box first
  2. then click everywhere outside browser window
  3. then click single select drop down box
  4. two drop down box open at the same time

overlapdropdownbox

we have tried the following code close the window when user click outside browser window with no success so far

$(window).blur(function(){
$('select').trigger("chosen:close");
}

$(window).blur(function(){
$(window).blur();
}

I am looking forward to your advise

Thanks,
Wang

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

1 participant