mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-19 09:50:33 +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:
Vendored
+2
-2
File diff suppressed because one or more lines are too long
@@ -996,7 +996,7 @@
|
|||||||
* @return {this.value}
|
* @return {this.value}
|
||||||
*/
|
*/
|
||||||
maybeDeleteValue() {
|
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
|
return this.multiple ? this.mutableValue.pop() : this.mutableValue = null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user