2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-17 02:29:37 +03:00

Fixes #8, Fixes #6

open dropdown on focus, don't pop values on second return hit, reset typeaheadpointer on filtered options change
This commit is contained in:
Jeff Sagal
2016-03-13 18:46:58 -07:00
parent 94d4a33909
commit 48dbade94b
2 changed files with 10533 additions and 7 deletions
+10526 -4
View File
File diff suppressed because one or more lines are too long
+7 -3
View File
@@ -121,6 +121,7 @@
@keydown.down.prevent="typeAheadDown"
@keydown.enter.prevent="typeAheadSelect"
@blur="open = false"
@focus="open = true"
type="search"
class="form-control"
:placeholder="searchPlaceholder"
@@ -194,6 +195,9 @@
},
multiple( val ) {
this.$set('value', val ? [] : null)
},
filteredOptions() {
this.typeAheadPointer = 0;
}
},
@@ -212,9 +216,9 @@
this.value = option
}
} else {
if (this.multiple) {
this.value.$remove(option)
}
// if (this.multiple) {
// this.value.$remove(option)
// }
}
if (!this.multiple) {