body-scroll-lock
body-scroll-lock copied to clipboard
Keyboard scrolls away from body lock
On iPhone and other mobile devices, when the keyboard is opened on an <input>
element inside the locked element, the element is scrolled upwards to make space for the keyboard.
When closing the keyboard again, the locked area keeps occupying only half the screen - with no way to scroll up.
I have noticed similar issues. Maybe it would be enough to listen for resize
events and then update the boundary metrics?
Issue still have in latest version. Any idea to fix it?
I have the same issue. I have no idea to fix it. @willmcpo Can you help me please?
you can get real areaSize by window.visualViewport in ios13