From 700ba8d011b8cde38a02862e5a2f11e9ac5d3082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Wed, 10 Jul 2024 17:55:48 +0300 Subject: [PATCH] Fixes #15999 - Fix the order of methods to prevent strict CSP error --- src/app/components/dialog/dialog.ts | 4 ++-- src/app/components/dynamicdialog/dynamicdialog.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/components/dialog/dialog.ts b/src/app/components/dialog/dialog.ts index 93918923200..aaccf7b1ca8 100755 --- a/src/app/components/dialog/dialog.ts +++ b/src/app/components/dialog/dialog.ts @@ -86,7 +86,7 @@ const hideAnimation = animation([animate('{{transition}}', style({ transform: '{ -
+
{{ header }} @@ -944,8 +944,8 @@ export class Dialog implements AfterContentInit, OnInit, OnDestroy { case 'visible': this.container = event.element; this.wrapper = this.container?.parentElement; - this.appendContainer(); this.moveOnTop(); + this.appendContainer(); this.bindGlobalListeners(); this.container?.setAttribute(this.id, ''); diff --git a/src/app/components/dynamicdialog/dynamicdialog.ts b/src/app/components/dynamicdialog/dynamicdialog.ts index a3da1c2ab57..3dd07d191ca 100755 --- a/src/app/components/dynamicdialog/dynamicdialog.ts +++ b/src/app/components/dynamicdialog/dynamicdialog.ts @@ -72,7 +72,7 @@ const hideAnimation = animation([animate('{{transition}}', style({ transform: '{ [attr.aria-labelledby]="ariaLabelledBy" [attr.aria-modal]="true" > -
+