Skip to content

Commit

Permalink
Remove scrollTo selected element in multiple select
Browse files Browse the repository at this point in the history
  • Loading branch information
mulquin committed Dec 13, 2016
1 parent 9fcc379 commit e076e6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/forms.js
Expand Up @@ -560,7 +560,9 @@
collection.find('li.selected').removeClass('selected');
var option = $(newOption);
option.addClass('selected');
options.scrollTo(option);
if (!multiple) {
options.scrollTo(option);
}
}
};

Expand Down

0 comments on commit e076e6a

Please sign in to comment.