Skip to content

Commit

Permalink
Changed the updateSelectedFilters method
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadei-Mykola committed Sep 14, 2023
1 parent 4f7a9b9 commit 8347319
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8347319

Please sign in to comment.