From b0e6c579fba36d93e6ed4f3e86aab7e0e3b809dd Mon Sep 17 00:00:00 2001 From: Spencer Moran Date: Sat, 7 Dec 2019 21:31:13 -0500 Subject: [PATCH] Fixes #212 --- src/lib/picker/picker.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/picker/picker.component.ts b/src/lib/picker/picker.component.ts index 6f3659ad..ea7a4b54 100644 --- a/src/lib/picker/picker.component.ts +++ b/src/lib/picker/picker.component.ts @@ -256,7 +256,9 @@ export class PickerComponent implements OnInit { } setActiveCategories(categoriesToMakeActive: Array) { if (this.showSingleCategory) { - this.activeCategories = categoriesToMakeActive.filter(x => x.name === this.selected); + this.activeCategories = categoriesToMakeActive.filter( + x => (x.name === this.selected || x === this.SEARCH_CATEGORY) + ); } else { this.activeCategories = categoriesToMakeActive; }