@node-projects/web-component-designer 0.1.1 → 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.
|
@@ -171,7 +171,7 @@ export class DesignerTabControl extends BaseCustomWebComponentLazyAppend {
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
get selectedIndex() {
|
|
174
|
-
return this._selectedIndex;
|
|
174
|
+
return this._firstConnect ? -1 : this._selectedIndex;
|
|
175
175
|
}
|
|
176
176
|
set selectedIndex(value) {
|
|
177
177
|
let old = this._selectedIndex;
|
|
@@ -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;
|