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

Delete key clears vue-select even if clearable is false (#723)

* Update Select.vue

* Update vue-select.js
This commit is contained in:
Marco
2019-02-09 23:55:19 +01:00
committed by Jeff Sagal
parent 96ff76649b
commit 11b7586bc8
2 changed files with 3 additions and 3 deletions
+2 -2
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -996,7 +996,7 @@
* @return {this.value}
*/
maybeDeleteValue() {
if (!this.$refs.search.value.length && this.mutableValue) {
if (!this.$refs.search.value.length && this.mutableValue && this.clearable) {
return this.multiple ? this.mutableValue.pop() : this.mutableValue = null
}
},