Skip to content

Commit ab0aa9f

Browse files
author
Ben Saunders
committed
Based on documentation, in prevAll and nextAll, we always want the first.
1 parent 85f30f6 commit ab0aa9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.multiselect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@
447447
var moveToLast = which === 38 || which === 37;
448448

449449
// select the first li that isn't an optgroup label / disabled
450-
var $next = $start.parent()[moveToLast ? 'prevAll' : 'nextAll']('li:not(.ui-multiselect-disabled, .ui-multiselect-optgroup-label)')[ moveToLast ? 'last' : 'first']();
450+
var $next = $start.parent()[moveToLast ? 'prevAll' : 'nextAll']('li:not(.ui-multiselect-disabled, .ui-multiselect-optgroup-label)').first();
451451

452452
// if at the first/last element
453453
if(!$next.length) {

0 commit comments

Comments
 (0)