survey-angular-ui 1.12.46 → 1.12.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -992,7 +992,15 @@
992
992
  this.componentFactoryResolver = componentFactoryResolver;
993
993
  }
994
994
  PopupService.prototype.createComponent = function (popupViewModel) {
995
- var portalHost = new portal.DomPortalOutlet(popupViewModel.container, this.componentFactoryResolver, this.applicationRef, this.injector);
995
+ var portalHost;
996
+ if (Number.parseInt(i0.VERSION.major) > 18) {
997
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
998
+ //@ts-ignore
999
+ portalHost = new portal.DomPortalOutlet(popupViewModel.container, this.applicationRef, this.injector);
1000
+ }
1001
+ else {
1002
+ portalHost = new portal.DomPortalOutlet(popupViewModel.container, this.componentFactoryResolver, this.applicationRef, this.injector);
1003
+ }
996
1004
  var portal$1 = new portal.ComponentPortal(PopupBaseContainerComponent);
997
1005
  var componentRef = portalHost.attach(portal$1);
998
1006
  popupViewModel.setComponentElement(popupViewModel.container.children[0]);
@@ -1647,6 +1655,7 @@
1647
1655
  };
1648
1656
  SurveyContentComponent.prototype.ngAfterViewChecked = function () {
1649
1657
  if (!!this.model && this.isSurveyUpdated) {
1658
+ this.isSurveyUpdated = false;
1650
1659
  this.model.afterRenderSurvey(this.rootEl.nativeElement);
1651
1660
  this.model.startTimerFromUI();
1652
1661
  }