Bump codemirror (#9052)

This commit is contained in:
Bram Kragten
2021-04-30 20:34:58 +02:00
committed by GitHub
parent f8aa472409
commit 6d80f15a98
2 changed files with 7 additions and 11 deletions

View File

@@ -124,10 +124,6 @@ export class HaCodeEditor extends UpdatingElement {
}
</style>`;
const container = document.createElement("span");
shadowRoot.appendChild(container);
this.codemirror = new this._loadedCodeMirror.EditorView({
state: this._loadedCodeMirror.EditorState.create({
doc: this._value,
@@ -160,7 +156,7 @@ export class HaCodeEditor extends UpdatingElement {
],
}),
root: shadowRoot,
parent: container,
parent: shadowRoot,
});
}