Fixes bug on multiple autocomplete reseting the form value when typing. (Issue #135)
This commit is contained in:
parent
273b05da00
commit
a64c96bc1e
|
@ -205,7 +205,7 @@ export class MultipleAutoCompleteComponent implements OnInit, MatFormFieldContro
|
||||||
if (this._isValidObject(query)) { return observableOf([]); }
|
if (this._isValidObject(query)) { return observableOf([]); }
|
||||||
|
|
||||||
// Since the object is changed we need to clear any existing selections, except for the first time.
|
// Since the object is changed we need to clear any existing selections, except for the first time.
|
||||||
if (query !== null) { this.pushChanges(null); }
|
// if (query !== null) { this.pushChanges(null); }
|
||||||
return this.filter(query);
|
return this.filter(query);
|
||||||
}),
|
}),
|
||||||
tap(() => { this.loading = false; }));
|
tap(() => { this.loading = false; }));
|
||||||
|
|
Loading…
Reference in New Issue