Skip to content

Commit 2667c01

Browse files
atscottjosephperrott
authored andcommitted
chore(docs): update autocomplete-filter-example.ts (#8167)
1 parent 0c25770 commit 2667c01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/material-examples/autocomplete-filter/autocomplete-filter-example.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export class AutocompleteFilterExample {
2626

2727
ngOnInit() {
2828
this.filteredOptions = this.myControl.valueChanges
29-
.startWith(null)
30-
.map(val => val ? this.filter(val) : this.options.slice());
29+
.startWith('')
30+
.map(val => this.filter(val));
3131
}
3232

3333
filter(val: string): string[] {

0 commit comments

Comments
 (0)