fix big table matching

This commit is contained in:
Evan You 2016-04-18 00:57:01 -04:00
parent 5174bb2bd8
commit bf39f1973c

View File

@ -102,11 +102,8 @@ var vm = new Vue({
},
methods: {
updateFilter (e) {
this.filter = e.target.value.toLowerCase()
},
matches (item) {
return item.value.toLowerCase().indexOf(this.filter) > -1
return item.value.toLowerCase().indexOf(this.filter.toLowerCase()) > -1
},
visibleCount () {
var count = 0