survey-creator-angular 1.9.129 → 1.9.130

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.
@@ -626,6 +626,12 @@
626
626
  };
627
627
  CreatorComponent.prototype.onModelChanged = function () {
628
628
  this.changeDetectorRef.detectChanges();
629
+ if (this.previousModel) {
630
+ this.previousModel.unsubscribeRootElement();
631
+ }
632
+ if (this.creator && this.container.nativeElement) {
633
+ this.creator.setRootElement(this.container.nativeElement);
634
+ }
629
635
  };
630
636
  CreatorComponent.prototype.ngAfterViewInit = function () {
631
637
  this.creator.setRootElement(this.container.nativeElement);