Commit c32a7412e89b56401f00324043acd3d8d9fe5ef7
1 parent
861fe324
select-binding-0
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/components/select/select.vue
... | ... | @@ -410,7 +410,7 @@ |
410 | 410 | getInitialValue(){ |
411 | 411 | const {multiple, value} = this; |
412 | 412 | let initialValue = Array.isArray(value) ? value : [value]; |
413 | - if (!multiple && (typeof initialValue[0] === 'undefined' || (String(initialValue[0]).trim() === '' && !Number.isFinite(initialValue[0])) )) initialValue = []; | |
413 | + if (!multiple && (typeof initialValue[0] === 'undefined' || (String(initialValue[0]).trim() === '' && !Number.isFinite(initialValue[0])))) initialValue = []; | |
414 | 414 | return initialValue.filter((item) => { |
415 | 415 | return Boolean(item) || item === 0 |
416 | 416 | }); | ... | ... |