Unplanned
Last Updated: 03 Jul 2025 09:04 by Michal
Jonathan
Created on: 24 Mar 2023 09:40
Category: Dialog
Type: Feature Request
13
Disable page scrolling when Dialog or Window is opened
Please disable page scrolling while the modal Dialog/Window is open. Some users may find the ability to scroll the background content confusing.
2 comments
Michal
Posted on: 03 Jul 2025 09:04

Especially: When window/dialog is Modal=true;

for non modal windows its up to dev how it should behave.

Jonathan
Posted on: 24 Mar 2023 15:19

Nearly every other UI framework has established disabling scroll of the page as the user's focus is the current dialog or window that is opened.

You can see this in various examples listed below:

As such I would expect the same behavior as this in my experience is the industry norm.

-----ADMIN EDIT-----

As a possible alternative, to disable the modal window background scroll, you can use the following conditional CSS:

@if(IsModalVisible)
{
    <style>
        body {
            overflow: hidden;
        }
    </style>
}