mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
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 Ref gh-1599
This commit is contained in:
parent
874b4a0316
commit
11bd6d28b7
@ -129,6 +129,11 @@ $.widget( "ui.dialog", {
|
|||||||
this.options.title = this.originalTitle;
|
this.options.title = this.originalTitle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Dialogs can't be disabled
|
||||||
|
if ( this.options.disabled ) {
|
||||||
|
this.options.disabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
this._createWrapper();
|
this._createWrapper();
|
||||||
|
|
||||||
this.element
|
this.element
|
||||||
|
Loading…
Reference in New Issue
Block a user