Disable scroll on body when modal is launched

Hey everyone :wave: … when a modal is launched we’d like to disable the scroll on main body.

For example, if a user scrolls and there is nothing to scroll on the modal itself, the position on main page shifts. On mobile this causes problems with the nav bar appearing/disappearing.

Anyone have ideas about how to disable background scroll when modal is launched? Thanks!

We’ve tried this recommendation by setting it on the Body section itself, yet scrolling still happening.

Perhaps we integrated it incorrectly?

image

Just found the solution… thank you @luka !!