Skip to content

Commit e76e3c9

Browse files
hrobertsonsagalbot
authored andcommitted
Don't mutate existing value. Change missing from PR sagalbot#702 (sagalbot#789)
1 parent d834f2c commit e76e3c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Select.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@
10291029
*/
10301030
maybeDeleteValue() {
10311031
if (!this.$refs.search.value.length && this.mutableValue && this.clearable) {
1032-
return this.multiple ? this.mutableValue.pop() : this.mutableValue = null
1032+
this.mutableValue = this.multiple ? this.mutableValue.slice(0, -1) : null
10331033
}
10341034
},
10351035

0 commit comments

Comments
 (0)