-
Notifications
You must be signed in to change notification settings - Fork 2
Deal with disable option on create #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deal with disable option on create #1
Conversation
This wasn't really supposed to be a PR on your fork :/ |
@@ -175,16 +175,22 @@ return $.widget( "ui.accordion", { | |||
} | |||
} | |||
|
|||
if ( key === "disabled" ) { | |||
this._setOptionDisabled( value ); | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This already happens in the call to ._super()
above.
For tabs, you should be able to just rename |
Without this, _on will still respect the disabled option and ends up preventing closing the dialog. Ref #9151
_setOptionDisabled in $.Widget is now handling that. Ref #9151
Tabs support multiple values to disable individual tabs. Only add the ui-tabs-disabled class when all tabs are disabled. Ref #9151
Updated. Removed all the redundant calls in Updated tabs, renaming to |
Building on top of jquerygh-1599, this fixes missing or redundant handling of the disabled option on create. The only missing widget is tabs. From my comment on the original PR: