Merged PR 319: #1061 View Destroy aus Artikelsuche - Suchfeld

#1061 View Destroy aus Artikelsuche - Suchfeld
This commit is contained in:
Lorenz Hilpert
2020-09-22 09:49:11 +00:00
committed by Sebastian Neumair

View File

@@ -73,6 +73,8 @@ export class ProductResultsComponent implements OnInit, OnDestroy, AfterViewInit
radioButtonGroup: RadioButtonGroup;
acrhiveFilter: boolean;
timoutScheisseUmwerk: NodeJS.Timer;
get areFiltersNegative() {
if (this.selectedFilterMode) {
return this.selectedFilterMode === Side.RIGHT;
@@ -184,7 +186,7 @@ export class ProductResultsComponent implements OnInit, OnDestroy, AfterViewInit
this.loading = false;
this.cdr.detectChanges();
setTimeout(() => {
this.timoutScheisseUmwerk = setTimeout(() => {
this.cdr.detectChanges();
this.scroller.checkViewportSize();
}, 500);
@@ -388,5 +390,7 @@ export class ProductResultsComponent implements OnInit, OnDestroy, AfterViewInit
ngOnDestroy() {
this.destroy$.next();
this.destroy$.complete();
clearTimeout(this.timoutScheisseUmwerk);
}
}