Skip to content

Commit bb00461

Browse files
committed
Dialog: Fixed stacking problem with modal dialogs.
1 parent acca0ba commit bb00461

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ui/ui.dialog.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ $.widget("ui.dialog", {
260260
// the force parameter allows us to move modal dialogs to their correct
261261
// position on open
262262
moveToTop: function(force) {
263-
if ((this.options.modal && !force) || !this.options.stack) { return; }
263+
if ((this.options.modal && !force)
264+
|| (!this.options.stack && !this.options.modal)) { return; }
264265

265266
var maxZ = this.options.zIndex, options = this.options;
266267
$('.ui-dialog:visible').each(function() {

0 commit comments

Comments
 (0)