-
Notifications
You must be signed in to change notification settings - Fork 329
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
Chrome & Safari dropdown does not close when clicked outside #45
Comments
anyone had this happen? any fixes? |
Yup. Still waiting for a fix as well. |
Try this, it worked for me ! $(document).click(function(){ $('.dk_open').live('click',function(e){ |
I'm having this issue as well and the suggestion made above didn't work. Any ideas? |
You could add this line in the "live" "click" event of .dk_toggle. The final method should be like this:
|
Hey there, did you notice that in chrome, when setting max-height in CSS doesn't open scrolling but in FF and IE it does. Someone noticed that and fixed it maybe? 10x, |
lae-mtl's suggestions didn't work for me either, but garposmack's fix worked perfectly. Thank you so much! I think this is definitely worth submitting as a pull request :-) |
A combination of garposmak's and lae-mtl's fixes worked for me---
I added this code outside the library in my own code. |
I had the same problem and a friend of mine discovered that if you add "tabindex" attribute to the "select" tag dropkick will behave properly. This won't work: <select name="test"> This will work: <select name="test" tabindex="1"> |
Although this will work.. but it will behave inconsistently if there are more than 1 element with the same tabindex in a page. |
Find: _closeDropdown($('.dk_toggle').parents(".dk_container").first()); Replace with: _closeDropdown($('.dk_open')); (Should be around the bottom, line 427 as of version 1.0.3) |
When you click outside the menu anywhere on the page, it stays open. FF and IE works fine and the menu collapses back.
The text was updated successfully, but these errors were encountered: