I have the following bug in my store mobile view: when i scroll a bit in my homepage and then click on the dropdown menu, when it is open my pages is freezing and performing as a bug. Please suggest me how to fix the code for it. I want to be able to click the menu whenever i am in the pages and when the menu is open to not brake. (check the video with bug here: Unique Download Link | WeTransfer )
Hello! I see this code is trying to work properly, but when i try to open the menu from different place in the page the bug is still going on. Can you do it work from wherever in the page i choose to open the menu?
It makes your sticky header no longer sticky and it kinda jumps back to the top of the page, rather then being fixed at the top of the window. overflow: hidden; does it.
Menu work reasonably well for me when this code is removed.
If you still want to retain it, use overflow: clip; instead.
People tend to recommend overflow: hidden; without consideration of what it does to position: sticky; children.
Ok, this was actually a custom code i firstly added and was working well but since i have more topics in the menu it doesnt’t work properly. Now i deleted it as you said but still when i click on the drawer menu icon i can scroll… please suggest me what to do..
Looks fine on some devices – are you testing on the iPhone Safari and the menu drawer is fixed, but the site is scrolling underneath?
This actually happens on Dawn demo store too https://theme-dawn-demo.myshopify.com, I’d rather ignore it, but let me have another look…
Yes i am browsing it on my iphone Safari, but actually i firstly saw it in the desktop browser after using inspector tool and mobile view option.
Also pretty annoying is I also have the carousell slider arrows visible on scroll to and i see it overflows in the header too when scrolling. But let’s keep the focus now with the menu drawer. I want when i click the icon, scroll to be inactive / not possible.
Suggest me solutions. I’ve recently deleted the code you mention, but let’s dive deeper…