Web Development

Prevent a page from scrolling while a dialog is open

Bramus: Chrome 144 features a small change to overscroll-behavior: it now also works on non-scrollable scroll containers. While this change might seem trivial, it fixes an issue developers have been dealing with for ages: prevent a page from scrolling while a (modal) <dialog> is open. YES! Way back in 2019, I worked on “Prevent Page Scrolling When a Modal

Prevent a page from scrolling while a dialog is open Read More »