Update src/panels/lovelace/components/hui-code-editor.ts

Co-Authored-By: bramkragten <mail@bramkragten.nl>
This commit is contained in:
Paulus Schoutsen 2019-01-28 19:30:23 +01:00 committed by GitHub
parent 644af4d009
commit d2bfd5ce62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ export class HuiCodeEditor extends HTMLElement {
mode: "yaml",
tabSize: 2,
});
this.codemirror.on("changes", this._onChange);
this.codemirror.on("changes", () => this._onChange());
} else {
this.codemirror.refresh();
}