Skip to main content

Search and Top Navigation

#9670 closed feature (plugin)

Opened November 20, 2013 02:59AM UTC

Closed November 20, 2013 05:36PM UTC

Modal dialog enhancement to prevent scrolling of parent window

Reported by: andrew.cheong Owned by:
Priority: minor Milestone: none
Component: ui.dialog Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:
Description

At the moment, "modal" dialogs allow the parent window to be scrolled by either using PageUp/PageDown, the mouse wheel, or by using the scrollbar.

In my opinion, no scrolling of the main window should be allowed since the modal dialog should be the focus of the users attention and everything else should not be able to be interacted with.

Attachments (0)
Change History (2)

Changed November 20, 2013 01:22PM UTC by tj.vantoll comment:1

Hi andrew.cheong,

Thanks for taking the time to contribute to jQuery UI. In my opinion this is not a good idea as the user may need to scroll to see something behind the dialog.

You can easily implement this sort of thing as an extension. This takes care of your scroll bar criteria - http://jsfiddle.net/tj_vantoll/q9wvc/.

Changed November 20, 2013 05:36PM UTC by scottgonzalez comment:2

resolution: → plugin
status: newclosed

I agree with tj.vantoll. Native dialogs (HTML5) don't prevent scrolling either.