From 3f614e29529d986a8299a985aaebf2347e42abfc Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sun, 27 Feb 2022 18:33:15 +0100 Subject: [PATCH] Use correct event. --- .../components/contents/content-list-cell.directive.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/shared/components/contents/content-list-cell.directive.ts b/frontend/src/app/shared/components/contents/content-list-cell.directive.ts index 21153744a..213ae4c7e 100644 --- a/frontend/src/app/shared/components/contents/content-list-cell.directive.ts +++ b/frontend/src/app/shared/components/contents/content-list-cell.directive.ts @@ -184,7 +184,7 @@ export class ContentListCellResizeDirective implements OnInit, OnDestroy { private mouseUp?: Function; private mouseDown?: Function; private mouseBlur?: Function; - private documentBlur?: Function; + private windowBlur?: Function; private startOffset = 0; private startWidth = 0; private fieldName?: string; @@ -239,7 +239,7 @@ export class ContentListCellResizeDirective implements OnInit, OnDestroy { this.mouseMove = this.renderer.listen('document', 'mousemove', this.onMouseMove); this.mouseUp = this.renderer.listen('document', 'mouseup', this.onMouseUp); - this.documentBlur = this.renderer.listen('document', 'blur', this.onBlur); + this.windowBlur = this.renderer.listen('window', 'blur', this.onBlur); this.startOffset = event.pageX; this.startWidth = this.element.nativeElement.offsetWidth; @@ -288,7 +288,7 @@ export class ContentListCellResizeDirective implements OnInit, OnDestroy { this.mouseMove = undefined; this.mouseUp?.(); this.mouseUp = undefined; - this.documentBlur?.(); - this.documentBlur = undefined; + this.windowBlur?.(); + this.windowBlur = undefined; } } \ No newline at end of file