A Shopify store owner reports a mobile menu bug where the page continues scrolling after opening the dropdown menu, causing freezing and erratic behavior. The issue occurs specifically on iPhone Safari and affects the Trade theme.
Attempted Solutions:
Multiple CSS fixes were suggested involving overflow: hidden properties on body/html elements
Recommendations to modify theme.liquid file and adjust overflow settings
One contributor noted that overflow: hidden breaks sticky header positioning and suggested using overflow: clip instead
Additional Issue Identified:
Carousel slider arrows overflow into the header during scrolling due to z-index conflicts
Fixed by increasing header z-index to 11
Current Status:
The main scrolling issue remains unresolved
User deleted previously working custom code but problem persists
Latest suggestion involves adding CSS to lock body scroll when menu is open, but user reports it’s ineffective
No definitive solution has successfully prevented background scrolling on iOS Safari during open menu state
Summarized with AI on October 24.
AI used: claude-sonnet-4-5-20250929.
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…