From c32a7412e89b56401f00324043acd3d8d9fe5ef7 Mon Sep 17 00:00:00 2001 From: luffyzhao Date: Fri, 25 May 2018 11:59:36 +0800 Subject: [PATCH] select-binding-0 --- src/components/select/select.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/select/select.vue b/src/components/select/select.vue index 578e3b3..ce4a186 100644 --- a/src/components/select/select.vue +++ b/src/components/select/select.vue @@ -410,7 +410,7 @@ getInitialValue(){ const {multiple, value} = this; let initialValue = Array.isArray(value) ? value : [value]; - if (!multiple && (typeof initialValue[0] === 'undefined' || (String(initialValue[0]).trim() === '' && !Number.isFinite(initialValue[0])) )) initialValue = []; + if (!multiple && (typeof initialValue[0] === 'undefined' || (String(initialValue[0]).trim() === '' && !Number.isFinite(initialValue[0])))) initialValue = []; return initialValue.filter((item) => { return Boolean(item) || item === 0 }); -- libgit2 0.21.4