We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 078afcb + 5a2b5e1 commit a8cf24dCopy full SHA for a8cf24d
src/jquery.multiselect.js
@@ -1353,8 +1353,10 @@
1353
_toggleDisabled: function(flag, groupID) {
1354
var disabledClass = 'ui-state-disabled'; // used for styling only
1355
1356
- this.$button.prop({ 'disabled':flag, 'aria-disabled':flag })[ flag ? 'addClass' : 'removeClass' ](disabledClass);
1357
-
+ if (this.$button) {
+ this.$button.prop({ 'disabled':flag, 'aria-disabled':flag })[ flag ? 'addClass' : 'removeClass' ](disabledClass);
1358
+ }
1359
+
1360
if (this.options.disableInputsOnToggle) {
1361
// Apply the ui-multiselect-disabled class name to identify which
1362
// input elements this widget disabled (not pre-disabled)
0 commit comments