web/elements: fix codemirror not being updateable without focus
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
f814f7792c
commit
a7d9857a69
|
@ -44,14 +44,10 @@ export class CodeMirrorTextarea extends LitElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
private getInnerValue(): string {
|
private getInnerValue(): string {
|
||||||
if (!this.shadowRoot) {
|
if (!this.editor) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
const ta = this.shadowRoot?.querySelector("textarea");
|
return this.editor.getValue();
|
||||||
if (!ta) {
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
return ta.value;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static get styles(): CSSResult[] {
|
static get styles(): CSSResult[] {
|
||||||
|
|
Reference in New Issue