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 {
|
||||
if (!this.shadowRoot) {
|
||||
if (!this.editor) {
|
||||
return "";
|
||||
}
|
||||
const ta = this.shadowRoot?.querySelector("textarea");
|
||||
if (!ta) {
|
||||
return "";
|
||||
}
|
||||
return ta.value;
|
||||
return this.editor.getValue();
|
||||
}
|
||||
|
||||
static get styles(): CSSResult[] {
|
||||
|
|
Reference in New Issue