-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
hoverable dropdown-pane won't close on an iPad #11423
Comments
Hi @pratham2003! Thank you for the bug report. It comes from the way we listen on clicks on the body. On mobile, no A quick solution would be to use I think we can go for the same solution: using the "Touch" utility for Dropdown to listen on the |
…ation#11423 Closes foundation#11423 BREAKING CHANGE: `foundation.utils.touch.js` is now required for `foundation.dropdown.js`. If you import the Foundation Dropdown plugin manually, make sure to import the "Touch" utility as well.
Hi @pratham2003! I took care of this and created a fix. See #11430. It should be deployed in v6.6.0. |
fix: fix various bugs with "Tap" events and "closeOnClick" options #11423
What should happen?
Dropdown (dropdown-pane) should close when clicking outside the dropdown-pane with data-hover="true" data-hover-pane="true" data-close-on-click="true"
What happens instead?
On iPad 11.4.1 (Safari/Chrome) the dropdown pane does not close on clicking outside the dropdown-pane.
Test Case and/or Steps to Reproduce
Test Case:
https://codepen.io/KraftPixel/pen/OwOWxO
https://foundation.zurb.com/sites/docs/dropdown.html
Check the Hoverable Dropdown
Context
Trying to build a mega menu that lists more than just a list of links. Works well on desktop. Failed on iPad's landscape mode.
Your Environment
Chrome 68 on iOS 11.4
Safari 11 on iOS 11.4
Checklist (all required):
The text was updated successfully, but these errors were encountered: