mirror of
https://github.com/tenrok/vue-select.git
synced 2026-05-29 05:14:04 +03:00
merge master into theme-addition
This commit is contained in:
@@ -127,6 +127,7 @@
|
||||
@keydown.down.prevent="typeAheadDown"
|
||||
@keydown.enter.prevent="typeAheadSelect"
|
||||
@blur="open = false"
|
||||
@focus="open = true"
|
||||
type="search"
|
||||
class="form-control"
|
||||
:placeholder="searchPlaceholder"
|
||||
@@ -199,6 +200,9 @@
|
||||
},
|
||||
multiple( val ) {
|
||||
this.$set('value', val ? [] : null)
|
||||
},
|
||||
filteredOptions() {
|
||||
this.typeAheadPointer = 0;
|
||||
}
|
||||
},
|
||||
|
||||
@@ -217,9 +221,9 @@
|
||||
this.value = option
|
||||
}
|
||||
} else {
|
||||
if (this.multiple) {
|
||||
this.value.$remove(option)
|
||||
}
|
||||
// if (this.multiple) {
|
||||
// this.value.$remove(option)
|
||||
// }
|
||||
}
|
||||
|
||||
if (!this.multiple) {
|
||||
@@ -286,7 +290,7 @@
|
||||
|
||||
onEscape() {
|
||||
if( ! this.search.length ) {
|
||||
this.open = false
|
||||
this.$els.search.blur()
|
||||
} else {
|
||||
this.$set('search', '')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user