diff --git a/src/panels/lovelace/editor/config-elements/hui-markdown-card-editor.ts b/src/panels/lovelace/editor/config-elements/hui-markdown-card-editor.ts index 1fde251a1d..138f95209c 100644 --- a/src/panels/lovelace/editor/config-elements/hui-markdown-card-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-markdown-card-editor.ts @@ -91,6 +91,7 @@ export class HuiMarkdownCardEditor extends LitElement } private _ignoreKeydown(ev: KeyboardEvent) { + // Stop keyboard events from the paper-textarea from propagating to avoid accidentally closing the dialog when the user presses Enter. ev.stopPropagation(); }