mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Dialog: Fix stacking of modal dialog overlays
Fixes #10138 Closes gh-1286
This commit is contained in:
parent
ffe60e39db
commit
acfda4be52
@ -260,6 +260,14 @@ return $.widget( "ui.dialog", {
|
|||||||
this._position();
|
this._position();
|
||||||
this._createOverlay();
|
this._createOverlay();
|
||||||
this._moveToTop( null, true );
|
this._moveToTop( null, true );
|
||||||
|
|
||||||
|
// Ensure the overlay is moved to the top with the dialog, but only when
|
||||||
|
// opening. The overlay shouldn't move after the dialog is open so that
|
||||||
|
// modeless dialogs opened after the modal dialog stack properly.
|
||||||
|
if ( this.overlay ) {
|
||||||
|
this.overlay.css( "z-index", this.uiDialog.css( "z-index" ) - 1 );
|
||||||
|
}
|
||||||
|
|
||||||
this._show( this.uiDialog, this.options.show, function() {
|
this._show( this.uiDialog, this.options.show, function() {
|
||||||
that._focusTabbable();
|
that._focusTabbable();
|
||||||
that._trigger( "focus" );
|
that._trigger( "focus" );
|
||||||
|
Loading…
Reference in New Issue
Block a user