I am having some issue in lwc. I have created a button component. On clicking on the button a modal box popups. Now, if a user scrolls outside of modal box the whole page page moves. So, I want to remove the scrollbar of background page (lightning record page) when modal box appears.

This is how it looks: enter image description here

Is it possible to remove the scrollbar of lightning record page when modal box appears and add it back when it is closed.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.