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 eeb48fc + 1d08b9e commit edf9886Copy full SHA for edf9886
src/jquery.multiselect.js
@@ -578,10 +578,10 @@
578
// show the menu, maybe with a speed/effect combo
579
$.fn.show.apply(menu, args);
580
581
- // select the first option
+ // select the first not disabled option
582
// triggering both mouseover and mouseover because 1.4.2+ has a bug where triggering mouseover
583
// will actually trigger mouseenter. the mouseenter trigger is there for when it's eventually fixed
584
- this.labels.eq(0).trigger('mouseover').trigger('mouseenter').find('input').trigger('focus');
+ this.labels.filter(':not(.ui-state-disabled)').eq(0).trigger('mouseover').trigger('mouseenter').find('input').trigger('focus');
585
586
button.addClass('ui-state-active');
587
this._isOpen = true;
0 commit comments