Skip to content

Commit 32add8b

Browse files
SteveTheTechieHarris
authored andcommitted
Fixes #812.
Code was previously finding the label in the filter HTML vs the first label in the checkboxes.
1 parent 7cedb6f commit 32add8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jquery.multiselect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,10 +1210,10 @@
12101210

12111211
// if at the first/last element
12121212
if (!$next.length) {
1213-
var $container = this.$menu.find('ul').last();
1213+
var $container = this.$checkboxes;
12141214

12151215
// move to the first/last
1216-
this.$menu.find('label').filter(':visible')[ moveToLast ? 'last' : 'first' ]().trigger('mouseover', {allowScroll: true});
1216+
$container.find('label').filter(':visible')[ moveToLast ? 'last' : 'first' ]().trigger('mouseover', {allowScroll: true});
12171217

12181218
// set scroll position
12191219
$container.scrollTop(moveToLast ? $container.height() : 0);

0 commit comments

Comments
 (0)