Block scrolling if a modal is opened

Hello! I would like to know if there’s a way to block the scrolling function for the main page if the user is in an opened modal. Thanks!

  1. You go to your outermost section that contains your content.

  2. Set up (Bind) the overflow of the outermost wrapper section to [your_modal_boolean_variable] ? “none” : “auto”