mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
#1061 View Destroy aus Artikelsuche - Suchfeld
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user