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:
Vendored
+2
-2
File diff suppressed because one or more lines are too long
@@ -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
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user