From 0157507f661ab216413ec0cf6f4a03128ecb5fce Mon Sep 17 00:00:00 2001 From: Valentin Mihai Date: Thu, 3 Mar 2022 22:02:55 +0200 Subject: [PATCH] called 'stopImmediatePropagation' method to be sure event will not be triggered more times --- src/lib/dialog/base-dialog.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/dialog/base-dialog.component.ts b/src/lib/dialog/base-dialog.component.ts index a9ba558..32d72d5 100644 --- a/src/lib/dialog/base-dialog.component.ts +++ b/src/lib/dialog/base-dialog.component.ts @@ -70,6 +70,7 @@ export abstract class BaseDialogComponent extends AutoUnsubscribe implements OnI @HostListener('window:keydown.Enter', ['$event']) onEnter(event: KeyboardEvent): void { + event?.stopImmediatePropagation(); const node = (event.target as IqserEventTarget).localName; if (this.valid && !this.disabled && this.changed && node !== 'textarea') { this.save();