#1061 View Destroy aus Artikelsuche - Suchfeld

This commit is contained in:
Lorenz Hilpert
2020-09-22 11:43:48 +02:00
parent da03e220ed
commit 3458b0a642

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);
}
}