Skip to content

Commit e58ed3c

Browse files
committed
Dialog: Override disabled option on create, force always-enabled state
Without this, _on will still respect the disabled option and ends up preventing closing the dialog. Ref #9151
1 parent be67a39 commit e58ed3c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ui/widgets/dialog.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ $.widget( "ui.dialog", {
129129
this.options.title = this.originalTitle;
130130
}
131131

132+
// Dialogs can't be disabled
133+
if ( this.options.disabled ) {
134+
this.options.disabled = false;
135+
}
136+
132137
this._createWrapper();
133138

134139
this.element

0 commit comments

Comments
 (0)