From 08c612c078f0b4880d7158776b821a83c71af962 Mon Sep 17 00:00:00 2001 From: BlackHakwDC Date: Wed, 15 Mar 2023 09:24:42 +0100 Subject: [PATCH 1/2] Update modal-example_component_ts.md --- .../v6/select/typeahead/angular/modal-example_component_ts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/usage/v6/select/typeahead/angular/modal-example_component_ts.md b/static/usage/v6/select/typeahead/angular/modal-example_component_ts.md index e1b536e723..f462df2885 100644 --- a/static/usage/v6/select/typeahead/angular/modal-example_component_ts.md +++ b/static/usage/v6/select/typeahead/angular/modal-example_component_ts.md @@ -60,7 +60,7 @@ export class TypeaheadComponent implements OnInit { */ const normalizedQuery = searchQuery.toLowerCase(); this.filteredItems = this.items.filter(item => { - return item.value.includes(normalizedQuery); + return item.text.includes(normalizedQuery); }); } } From e853255dbfd63af8e920d4c90c969c871fdb4d4f Mon Sep 17 00:00:00 2001 From: BlackHakwDC Date: Wed, 15 Mar 2023 09:39:25 +0100 Subject: [PATCH 2/2] Update modal-example_component_ts.md --- .../v6/select/typeahead/angular/modal-example_component_ts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/usage/v6/select/typeahead/angular/modal-example_component_ts.md b/static/usage/v6/select/typeahead/angular/modal-example_component_ts.md index f462df2885..5631319f98 100644 --- a/static/usage/v6/select/typeahead/angular/modal-example_component_ts.md +++ b/static/usage/v6/select/typeahead/angular/modal-example_component_ts.md @@ -60,7 +60,7 @@ export class TypeaheadComponent implements OnInit { */ const normalizedQuery = searchQuery.toLowerCase(); this.filteredItems = this.items.filter(item => { - return item.text.includes(normalizedQuery); + return item.text.toLowerCase().includes(normalizedQuery); }); } }