From 83473198dc504ad70bfb45b22f72fb630f706012 Mon Sep 17 00:00:00 2001 From: Tadei-Mykola Date: Thu, 14 Sep 2023 12:38:53 +0300 Subject: [PATCH] Changed the updateSelectedFilters method --- .../components/events-list/events-list.component.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app/main/component/events/components/events-list/events-list.component.ts b/src/app/main/component/events/components/events-list/events-list.component.ts index f2de32a42a..069ddd6ba1 100644 --- a/src/app/main/component/events/components/events-list/events-list.component.ts +++ b/src/app/main/component/events/components/events-list/events-list.component.ts @@ -129,11 +129,16 @@ export class EventsListComponent implements OnInit, OnDestroy { this.selectedFilters.splice(existingFilterIndex, 1); this.deleteFromEventFilterCriteria(value, dropdownName); this.checkAllSelectedFilters(value, optionsList, dropdownName, filterList); - } else if (event.isUserInput && !event.source.selected) { + } + + if (event.isUserInput && !event.source.selected) { this.checkAllSelectedFilters(value, optionsList, dropdownName, filterList); - } else if (!event.source.selected) { + } + + if (!event.source.selected) { this.deleteFromEventFilterCriteria(value, dropdownName); } + if (!isUserInput && event.source.selected) { this.selectedFilters.push(value); this.addToEventFilterCriteria(value, dropdownName);