修改select默认value为0不能选定的Bug
This commit is contained in:
parent
7468f04d84
commit
4107d6c4a5
2 changed files with 2 additions and 3 deletions
|
@ -410,7 +410,6 @@
|
|||
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 = [];
|
||||
return initialValue.filter((item) => {
|
||||
return Boolean(item) || item === 0
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue