fixed the multiple cannot be force set the query value.
This commit is contained in:
parent
4403f97d44
commit
1d680640f7
1 changed files with 1 additions and 1 deletions
|
@ -426,7 +426,7 @@
|
|||
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 (this.remote && this.value) this.query = Array.isArray(value) ? "" : value;
|
||||
if (this.remote && !this.multiple && this.value) this.query = value;
|
||||
return initialValue.filter((item) => {
|
||||
return Boolean(item) || item === 0;
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue