Disable scrolling on the `body` element when opening a modal document.body.style.overflow = 'hidden'; // Allow to scroll when closing the modal
DOWNLOAD: https://tinurli.com/2fbmuk
DOWNLOAD: https://tinurli.com/2fbmuk
react-modal-prevent-scroll
Jun 23, 2021 — works on Chrome/Firefox; works with vanilla JS and frameworks such as React / Angular / VueJS; supports nested target elements (eg. a modal that .... Jun 21, 2020 — Disable scrolling. One of our ARIA requirements is to not allow the user to interact with elements outside the modal, such as scrolling. To .... Jan 15, 2019 — useLockBodyScroll. Sometimes you want to prevent your users from being able to scroll the body of your page while a particular component is ... 939c2ea5af
Comments