Header Menu, more button on mobile
-
Hello,
Sometimes, the “more button” (class .menu-item-has-children) on mobile has a desktop behavior.
It shows first the mobile full screen “.sub-menu” , then when I push “Back” button, it closes the mobile sub-menu and shows the desktop dropdown sub-menu.BR,
Denis
-
Thanks, don’t worry too much about the additional testing. I think that’s enough to debug the issue
On ipad (safari) : https://denom.be/sub-menu-issue/ipad.mp4
On samsung (chrome) :
I think I narrowed it down to the CSS causing the problem. There is CSS that shows the keyboard menu on hover, and, because touch devices trigger can hover events even when you aren’t using a mouse, you can be shown both the keyboard menu as well as the mobile menu.
Bug raised on Github, thanks for your efforts.
https://github.com/WordPress/twentynineteen/issues/731Thought the same, was reading toggleSubmenuDisplay function for this.
No problem, it’s a young theme 🙂
Thank you and have a nice day !
Hi, just a heads-up: I’ve struggled with “more” button behaviour on desktop, it appeared there when it shouldn’t.
So I dug through the files trying things out and found a TYPO!
It’s in the “priority-menu.js” file ind the “js” folder.
Twice.
Line 147:` // Recur if the visible list is still overflowing the nav
if ( isOverflowingNavivation( visibleList, toggleButton, container ) ) {
updateNavigationMenu( container );
}
}`and
Line 123:
if ( isOverflowingNavivation( visibleList, toggleButton, container ) ) {
I’ve also tweeted about it, please do change the typos in the TwentyNineteen download package 🙂
I hope that will fix all the weird behaviour. it did for me..@wordpress 🚨🚨🚨 #TwentyNineteen Theme: You guys! I've found a typo in your "priority-menu.js" file:
' function isOverflowingNavivation( list, button, container ) {
return list.offsetWidth > getAvailableSpace( button, container );
} '— jesterhead 🌻 (@komiska) March 21, 2019
- The topic ‘Header Menu, more button on mobile’ is closed to new replies.