I have a responsive webpage that opens a modality at the click of a button. When the modal mode opens, it is set to full page width and height using fixed positioning. The module also has an input field.
On iOS devices, when the input field is focused, the keyboard opens. However, when it opens, it actually pushes the full document out of the way, so that half of my page goes beyond the top of the viewport. I can confirm that the actual html tag was clicked to compensate for the keyboard and that this did not happen using CSS or JavaScript.
Has anyone seen this before, and if so, is there a way to prevent it or change position after opening the keyboard? This is a problem because I need users to be able to see the content at the top of the modal file, while at the same time I would like to autofocus the input field.
source share