Skip to content

Commit

Permalink
Avoid unnecessary close
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonykoerber committed Oct 1, 2015
1 parent d056443 commit 6be6b44
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mm-autocomplete/mm-autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
this.fire('changed', { value: value });
}

this.close();
if (this.state === this.STATE_OPENED) this.close();
},

_highlightedIndexChanged: function(newIndex, oldIndex) {
Expand Down
2 changes: 1 addition & 1 deletion src/mm-dropdown/mm-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
}
}

this.close();
if (this.state === this.STATE_OPENED) this.close();
},

_highlightedIndexChanged: function(newIndex, oldIndex) {
Expand Down
2 changes: 1 addition & 1 deletion src/mm-pulldown-button/mm-pulldown-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
});
}

this.close();
if (this.state === this.STATE_OPENED) this.close();
},

_highlightedIndexChanged: function(newIndex, oldIndex) {
Expand Down

0 comments on commit 6be6b44

Please sign in to comment.