move check id out of constructor

This commit is contained in:
Fabio Pliger
2022-04-22 12:55:06 -05:00
parent ea63e36ca1
commit 45d68f5701
3 changed files with 28 additions and 21 deletions

View File

@@ -98,6 +98,7 @@ export class PyScript extends BaseEvalElement {
}
connectedCallback() {
this.checkId()
this.code = this.innerHTML;
this.innerHTML = '';
let startState = EditorState.create({