How to fix the iOS 11 input element in fixed modals bug
Eirik Luka
4K74

We use this piece of code to prevent content below the modal’s overlay from scrolling, it also fixes the issue with iOS 11:

document.body.style.overflow = ‘hidden’;
document.body.style.height = ‘100%’;
document.body.style.width = ‘100%’;
if (osIsiOS()) {
document.body.style.position = ‘fixed’;
}
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.