-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Widget: Call ._setOptionDisabled()
on init if the widget is disabled
#1599
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
Conversation
Looking through uses of
None of the interactions have a visual disabled state, that's on purpose, right? |
Correct. Interactions don't get visually disabled states because they represent actions, not controls. Applying a disabled state to something like draggable would make the contents of the draggable seem disabled, which isn't the case. |
All of the commits that Jörn referenced are from scottgonzalez#1, if anyone else wants to take a look. I've already reviewed it, and once everything is updated over there, I'll land all of this together. |
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
@jzaefferer's commits have been merged into this PR. |
I actually failed to verify passing tests (and your repo doesn't have Travis enabled...), so I missed on failing assertion. This fixes it, and seems like the right approach to me: https://gist.github.com/jzaefferer/3c06668c1ed37129edd9 That is, if all individual tabs are disabled, it should have the |
Without this, _on will still respect the disabled option and ends up preventing closing the dialog. Ref #9151 Ref gh-1599
_setOptionDisabled in $.Widget is now handling that. Ref #9151 Ref gh-1599
How to make the jQuery UI Accordion widget multiple? |
@zhump This is not an appropriate place to ask support questions. Please use the forums, Stack Overflow, or IRC. |
ok sorry thanks |
Fixes #9151
The full test suite passes, but I haven't gone through demos to make sure everything actually looks and behaves properly. We should probably also go through the
._create()
method for each widget and remove any logic that isn't necessary as a result of this change.