Commit 1d680640f76628612c501a2af81de49ab9dc3916

Authored by m430
1 parent 4403f97d

fixed the multiple cannot be force set the query value.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/components/select/select.vue
... ... @@ -426,7 +426,7 @@
426 426 const {multiple, value} = this;
427 427 let initialValue = Array.isArray(value) ? value : [value];
428 428 if (!multiple && (typeof initialValue[0] === 'undefined' || (String(initialValue[0]).trim() === '' && !Number.isFinite(initialValue[0])))) initialValue = [];
429   - if (this.remote && this.value) this.query = Array.isArray(value) ? "" : value;
  429 + if (this.remote && !this.multiple && this.value) this.query = value;
430 430 return initialValue.filter((item) => {
431 431 return Boolean(item) || item === 0;
432 432 });
... ...