web/elements: fix error resetting form with codemirror
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
@ -29,6 +29,7 @@ export class CodeMirrorTextarea extends LitElement {
|
|||||||
|
|
||||||
@property()
|
@property()
|
||||||
set value(v: string) {
|
set value(v: string) {
|
||||||
|
if (v === null) return;
|
||||||
this._value = v.toString();
|
this._value = v.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user