Helpful comment. See #8152 (#8160)

This commit is contained in:
Thomas Lovén 2021-01-16 16:40:59 +01:00 committed by GitHub
parent 84a9ca59ef
commit 45200da32f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}