From e30a000dda4d59074d2c378a3975eaefbb2abbe0 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 26 Oct 2017 12:26:00 -0400 Subject: [PATCH] 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. --- src/components/Select.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Select.vue b/src/components/Select.vue index 616d9d0..6d00d75 100644 --- a/src/components/Select.vue +++ b/src/components/Select.vue @@ -952,7 +952,7 @@ if (this.multiple) { return this.mutableValue } else if (this.mutableValue) { - return [this.mutableValue] + return [].concat(this.mutableValue) } return []