From 8246b4766803bbab10ca719b852c7129e2ade444 Mon Sep 17 00:00:00 2001 From: Andrew Henry Date: Fri, 29 Mar 2019 10:38:56 -0700 Subject: [PATCH] Force digest on compilation of overlay template (#2344) --- platform/commonUI/dialog/src/OverlayService.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/platform/commonUI/dialog/src/OverlayService.js b/platform/commonUI/dialog/src/OverlayService.js index 75b952734e..ee59b43b9f 100644 --- a/platform/commonUI/dialog/src/OverlayService.js +++ b/platform/commonUI/dialog/src/OverlayService.js @@ -92,13 +92,13 @@ define( scope.overlay = overlayModel; scope.key = key; scope.typeClass = typeClass || 't-dialog'; - - // Create the overlay element and add it to the document's body - element = this.$compile(TEMPLATE)(scope); - - // Append so that most recent dialog is last in DOM. This means the most recent dialog will be on top when - // multiple overlays with the same z-index are active. - this.findBody().append(element); + scope.$apply(() => { + // Create the overlay element and add it to the document's body + element = this.$compile(TEMPLATE)(scope); + // Append so that most recent dialog is last in DOM. This means the most recent dialog will be on top when + // multiple overlays with the same z-index are active. + this.findBody().append(element); + }) return { dismiss: dismiss