2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-04 06:32:23 +03:00

Don't mutate existing value. Change missing from PR #702 (#789)

This commit is contained in:
Hamish Robertson
2019-03-22 17:48:51 +00:00
committed by Jeff Sagal
parent d834f2c993
commit e76e3c966b
+1 -1
View File
@@ -1029,7 +1029,7 @@
*/
maybeDeleteValue() {
if (!this.$refs.search.value.length && this.mutableValue && this.clearable) {
return this.multiple ? this.mutableValue.pop() : this.mutableValue = null
this.mutableValue = this.multiple ? this.mutableValue.slice(0, -1) : null
}
},