From e5151eb1767743ec5e3be6684fb3a775deb3be61 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Tue, 16 Jul 2019 13:53:48 +0200 Subject: [PATCH] mODAL FIX --- .../app/framework/angular/forms/confirm-click.directive.ts | 1 - .../framework/angular/modals/modal-placement.directive.ts | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Squidex/app/framework/angular/forms/confirm-click.directive.ts b/src/Squidex/app/framework/angular/forms/confirm-click.directive.ts index 9654f4d9e..aeec5c759 100644 --- a/src/Squidex/app/framework/angular/forms/confirm-click.directive.ts +++ b/src/Squidex/app/framework/angular/forms/confirm-click.directive.ts @@ -90,7 +90,6 @@ export class ConfirmClickDirective implements OnDestroy { this.clickConfirmed.emit(); } - event.stopPropagation(); event.preventDefault(); } } diff --git a/src/Squidex/app/framework/angular/modals/modal-placement.directive.ts b/src/Squidex/app/framework/angular/modals/modal-placement.directive.ts index befa42c5a..8419294a9 100644 --- a/src/Squidex/app/framework/angular/modals/modal-placement.directive.ts +++ b/src/Squidex/app/framework/angular/modals/modal-placement.directive.ts @@ -63,11 +63,10 @@ export class ModalPlacementDirective extends ResourceOwner implements AfterViewI public ngAfterViewInit() { const modalRef = this.element.nativeElement; + this.renderer.setStyle(modalRef, 'margin', '0'); this.renderer.setStyle(modalRef, 'position', 'fixed'); - this.renderer.setStyle(modalRef, 'z-index', '1000000'); - this.renderer.setStyle(modalRef, 'right', 'auto'); this.renderer.setStyle(modalRef, 'bottom', 'auto'); - this.renderer.setStyle(modalRef, 'margin', '0'); + this.renderer.setStyle(modalRef, 'right', 'auto'); this.updatePosition(); }