Skip to content

Commit

Permalink
don't rely on the ">tagName" pseudo-selector
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Mar 13, 2017
1 parent d0c22f1 commit 0c659f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions multiple-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
return;
}
this.options.isOpen = true;
this.$choice.find('>div').addClass('open');
this.$choice.find('div').addClass('open');
this.$drop.show();

// fix filter bug: no results show
Expand Down Expand Up @@ -344,7 +344,7 @@

close: function () {
this.options.isOpen = false;
this.$choice.find('>div').removeClass('open');
this.$choice.find('div').removeClass('open');
this.$drop.hide();
if (this.options.container) {
this.$parent.append(this.$drop);
Expand All @@ -358,7 +358,7 @@

update: function (isInit) {
var selects = this.options.displayValues ? this.getSelects() : this.getSelects('text'),
$span = this.$choice.find('>span'),
$span = this.$choice.find('span'),
sl = selects.length;

if (sl === 0) {
Expand Down

0 comments on commit 0c659f6

Please sign in to comment.