Skip to content

Commit

Permalink
fix select2#4584 Higlighted Item Problem [MultiSelect with closeOnSel…
Browse files Browse the repository at this point in the history
…ect=false]
  • Loading branch information
Roman Markelov committed Oct 11, 2016
1 parent 563198a commit 7887d44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/select2/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ define([
}

self.setClasses();
self.highlightFirstItem();
if (!(self.options.get('multiple') && !self.options.get('closeOnSelect'))) {
self.highlightFirstItem();
}
});

container.on('unselect', function () {
Expand Down

0 comments on commit 7887d44

Please sign in to comment.