@node-projects/web-component-designer 0.1.2 → 0.1.3
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.
|
@@ -211,7 +211,7 @@ export class DocumentContainer extends BaseCustomWebComponentLazyAppend {
|
|
|
211
211
|
this._codeDiv.appendChild(this.codeView);
|
|
212
212
|
}
|
|
213
213
|
if (i.newIndex === 0 || i.newIndex === 2)
|
|
214
|
-
this.designerView.parseHTML(this._content);
|
|
214
|
+
this.designerView.parseHTML(this._content, this._firstLoad);
|
|
215
215
|
if (i.newIndex === 1 || i.newIndex === 2) {
|
|
216
216
|
this.codeView.update(this._content);
|
|
217
217
|
if (this._selectionPosition) {
|
|
@@ -229,6 +229,9 @@ export class DocumentContainer extends BaseCustomWebComponentLazyAppend {
|
|
|
229
229
|
if (i.newIndex === 3) {
|
|
230
230
|
this.demoView.display(this._serviceContainer, this.designerView.instanceServiceContainer, this._content, this.additionalStyleString);
|
|
231
231
|
}
|
|
232
|
+
if (this._content) {
|
|
233
|
+
this._firstLoad = false;
|
|
234
|
+
}
|
|
232
235
|
});
|
|
233
236
|
if (this._content) {
|
|
234
237
|
this.content = this._content;
|