docs(autocomplete): Fix regex filter search (#4425)

This commit is contained in:
Will Howell
2017-05-09 13:47:58 -04:00
committed by Kara
parent 525ce1e0fe
commit d10e5f8ba9
+1 -1
View File
@@ -138,7 +138,7 @@ class MyComp {
}
filter(name: string): User[] {
return this.options.filter(option => new RegExp(`^${name}`, 'gi').test(option));
return this.options.filter(option => new RegExp(`^${name}`, 'gi').test(option.name));
}
displayFn(user: User): string {