Skip to content

Commit 2489720

Browse files
author
Eric Hynds
committed
Merge pull request #429 from r4j4h/up-arrow-prevAll-fix
Based on documentation, in prevAll and nextAll, we always want the first...
2 parents 9bf9127 + ab0aa9f commit 2489720

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)