From 2332ac9bffe4f97470b3c98e4b6b3b290e8c14d9 Mon Sep 17 00:00:00 2001 From: Sergio Crisostomo Date: Mon, 5 Mar 2018 08:48:25 +0100 Subject: [PATCH] Fix error in formater for multiple values --- src/components/date-picker/picker.vue | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/src/components/date-picker/picker.vue b/src/components/date-picker/picker.vue index 978c184..38fd92b 100644 --- a/src/components/date-picker/picker.vue +++ b/src/components/date-picker/picker.vue @@ -198,6 +198,7 @@ publicStringValue(){ const {formatDate, publicVModelValue, type} = this; if (type.match(/^time/)) return publicVModelValue; + if (this.multiple) return formatDate(publicVModelValue); return Array.isArray(publicVModelValue) ? publicVModelValue.map(formatDate) : formatDate(publicVModelValue); }, opened () { -- libgit2 0.21.4