Unplanned
Last Updated: 31 Mar 2023 05:32 by ADMIN
Jonathan
Created on: 24 Mar 2023 09:40
Category: Dialog
Type: Feature Request
6
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.
1 comment
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>
}