-
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
Dropdown menu not working on touch devices #9484
Comments
I'm seeing this behavior as well. Comparing 6.2.3 to 6.2.4 I removed the following lines (lines 3909-3911 in foundation.js) and only left the return statement : This is how the code was in 6.2.3. The menu doesn't hide on click anymore, but at least the link is followed. |
It looks to me that this change: https://github.com/zurb/foundation-sites/pull/9472/files |
@gitwebdevseo v6.3.0 is released. Is it still an issue ? |
I encountered this issue reported and discussed in #9293 and thought it was later worked out. The interim fix was to add a |
@ncoden sorry for the delay in replying - been travelling. I have tried it with a fresh local install of 6.3 and it no longer seems to be a problem - i.e. dropdown menu submenu items are selectable on touch devices - well on the ipad I tried with anyway. I would put up a codepen to illustrate but the jsDelivr CDN links (referenced on this page: https://foundation.zurb.com/sites/docs/installation.html) are not yet actually there, so I can't. It would be good to get those CDN links up! |
Actually - I will raise a separate request to get the CDN links populated. |
I'm having this issue too with the 6.3.0 version. I have created two codepens using the same example as on the docs.:
As workaround, the only thing I found it works for me is adding to the '.menu' element the attribute Hope it helps!! |
Yes - contrary to what I said in my previous post, I agree with @sinspiral that it is still broke. Did my own codepen here: |
…licks on dropdown menus. fix foundation#9484
The delay on touch devices between the click and touchend event was preventing the link navigation, as browser security policies don't allow link navigation on hidden elements. fixes foundation#9484
thanks @memoht that fixed the issue. |
I experienced this problem using v.6.3.0 on an iPad and |
been facing the same issue. i'm using foundation sass through the cli so it's the latest version (6.3.0) and the dropdown menu items are not clickable on my mobile phone. the |
Referencing the same error on android firefox and chrome with 6.3.0 |
Added custom handler for parent menu items $(".topmenu li:has(ul) > a").click(function(e) {
e.stopPropagation();
e.preventDefault();
if($(this).hasClass("oneTouch")){
$(this).removeClass("oneTouch");
window.location = $(this).attr("href");
}
else{
$(this).addClass("oneTouch");
}
}); |
@sashabeep are you seeing this in 6.3.1? I believe @sinspiral's PR addressed this |
@kball 6.3.0, 6.3.1 not yet tested without my custom handler. |
@kball @sashabeep 6.3.1 has fixed this issue for me. |
Hello, I am experiencing this issue still, even though the site I am working on uses Foundation version 6.6.3 . Any insights to fix the issue? |
This issue has been mentioned on Foundation Open Source Community. There might be relevant details there: https://foundation.discourse.group/t/drop-down-menu-disappears-in-tablets/4358/1 |
A few people seem to have raised this issue on the Forum but no feedback from anyone from Zurb.
Here is a codepen to illustrate the problem (on 6.2.4):
http://codepen.io/Byzantium/pen/oYMbmx
On pc/mac the submenu items are clickable and work as you would expect (except giving a 404 within codepen)
On an ipad, if you
I have only tested on an ipad as that's all I have, but others have used other touch devices and had the same issue.
I'm still learning foundation, so if the problem is with my code then my apologies. I can't see any reason why it should not work, but it does not.
The text was updated successfully, but these errors were encountered: