Skip to content

Commit

Permalink
fix sort after search field change
Browse files Browse the repository at this point in the history
  • Loading branch information
thisIsTheFoxe committed Dec 30, 2020
1 parent 354e10e commit d482c57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vue-definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ window.app = new Vue({

search() {
this.visibleCountries = this.countries.filter(e => e.toLowerCase().includes(this.searchField.toLowerCase()));
this.sortCountries();
},

selectAll() {
Expand Down

0 comments on commit d482c57

Please sign in to comment.