Skip to content

Commit d10e5f8

Browse files
willshowellkara
authored andcommitted
docs(autocomplete): Fix regex filter search (#4425)
1 parent 525ce1e commit d10e5f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/autocomplete/autocomplete.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class MyComp {
138138
}
139139

140140
filter(name: string): User[] {
141-
return this.options.filter(option => new RegExp(`^${name}`, 'gi').test(option));
141+
return this.options.filter(option => new RegExp(`^${name}`, 'gi').test(option.name));
142142
}
143143

144144
displayFn(user: User): string {

0 commit comments

Comments
 (0)