2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-16 09:10:33 +03:00

fix: allow typeAheadSelect only when option is selectable (#1529)

This commit is contained in:
Jeff Sagal
2022-02-17 16:57:27 -08:00
committed by GitHub
parent 0c72638d5e
commit 115f24aba2
5 changed files with 28 additions and 13 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ export default {
typeAheadSelect() {
const typeAheadOption = this.filteredOptions[this.typeAheadPointer]
if (typeAheadOption) {
if (typeAheadOption && this.selectable(typeAheadOption)) {
this.select(typeAheadOption)
}
},