Skip to content

Commit

Permalink
Remove setting items to empty array from closeMenu action
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacek Samól committed Oct 5, 2017
1 parent 48257b9 commit 3fe7db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/mdInputContainer/mdAutocomplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
this.timeout = window.setTimeout(() => {
if (this.query.length < this.minChars && !this.itemsEmpty ) {
this.items = [];

This comment has been minimized.

Copy link
@lucasm-iRonin

lucasm-iRonin Oct 5, 2017

What's the difference? this.items = [] was executed in closeMenu anyway?

this.closeMenu();
return;
}
Expand Down Expand Up @@ -247,7 +248,6 @@
},
closeMenu() {
this.isItemSelected = 0;
this.items = [];
this.$refs.menu.close();
},
updateValues(value) {
Expand Down

0 comments on commit 3fe7db9

Please sign in to comment.