You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ios safari, using this hook with the default of document body doesn't actually prevent scrolling.
To Reproduce
Open the menu on your documentation site on an iPhone and see that when you scroll to the bottom, you can still scroll the body behind the menu.
Expected behavior
You should not be able to scroll the menu.
Additional context
This works if you set overflow: hidden; on ios rather than overflow-y. Unless there was a specific reason for that choice to only do Y when moving from useLockedBody, reverting to preventing all overflow seems to do the trick.
The text was updated successfully, but these errors were encountered:
Describe the bug
In ios safari, using this hook with the default of document body doesn't actually prevent scrolling.
To Reproduce
Open the menu on your documentation site on an iPhone and see that when you scroll to the bottom, you can still scroll the body behind the menu.
Expected behavior
You should not be able to scroll the menu.
Additional context
This works if you set overflow: hidden; on ios rather than overflow-y. Unless there was a specific reason for that choice to only do Y when moving from useLockedBody, reverting to preventing all overflow seems to do the trick.
The text was updated successfully, but these errors were encountered: