Skip to content

Commit

Permalink
don't remove/toggle selected class on prevActive (#2101, #1999)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyjhol committed Oct 15, 2018
1 parent 1c216f6 commit 92f643f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions js/bootstrap-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -1886,10 +1886,8 @@
prevActiveIndex = this.selectpicker.main.map.newIndex[this.prevActiveIndex];
prevActive = this.selectpicker.main.elements[prevActiveIndex];

prevActive.classList.toggle('selected', selected);
prevActive.classList.remove('active');
if (prevActive.firstChild) {
prevActive.firstChild.classList.toggle('selected', selected);
prevActive.firstChild.classList.remove('active');
}
}
Expand Down

0 comments on commit 92f643f

Please sign in to comment.