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

valueAsArray to handle passed arrays

In the test suite sometimes a mutableValue array is passed when `multiple == false`. Using [].concat rather than an array literall allows valueAsArray to handle these cases.   [].concat could handle the case when `multiple == true` as well.
This commit is contained in:
Unknown
2017-10-26 12:26:00 -04:00
parent 10e8516639
commit e30a000dda
+1 -1
View File
@@ -952,7 +952,7 @@
if (this.multiple) {
return this.mutableValue
} else if (this.mutableValue) {
return [this.mutableValue]
return [].concat(this.mutableValue)
}
return []