We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c25770 commit 2667c01Copy full SHA for 2667c01
src/material-examples/autocomplete-filter/autocomplete-filter-example.ts
@@ -26,8 +26,8 @@ export class AutocompleteFilterExample {
26
27
ngOnInit() {
28
this.filteredOptions = this.myControl.valueChanges
29
- .startWith(null)
30
- .map(val => val ? this.filter(val) : this.options.slice());
+ .startWith('')
+ .map(val => this.filter(val));
31
}
32
33
filter(val: string): string[] {
0 commit comments