We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffe60e3 commit acfda4bCopy full SHA for acfda4b
ui/dialog.js
@@ -260,6 +260,14 @@ return $.widget( "ui.dialog", {
260
this._position();
261
this._createOverlay();
262
this._moveToTop( null, true );
263
+
264
+ // Ensure the overlay is moved to the top with the dialog, but only when
265
+ // opening. The overlay shouldn't move after the dialog is open so that
266
+ // modeless dialogs opened after the modal dialog stack properly.
267
+ if ( this.overlay ) {
268
+ this.overlay.css( "z-index", this.uiDialog.css( "z-index" ) - 1 );
269
+ }
270
271
this._show( this.uiDialog, this.options.show, function() {
272
that._focusTabbable();
273
that._trigger( "focus" );
0 commit comments