From 5490883d0f4a4fc9fb310c569570168b17570884 Mon Sep 17 00:00:00 2001 From: Andreas Tennert Date: Mon, 12 Aug 2024 12:18:36 +0200 Subject: [PATCH] fix: stop propagation on dialog escape --- .../sketch/src/lib/components/dialog/dialog.component.html | 2 +- libs/sketch/src/lib/components/dialog/dialog.component.ts | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/libs/sketch/src/lib/components/dialog/dialog.component.html b/libs/sketch/src/lib/components/dialog/dialog.component.html index 2ecd968..cf6f05c 100644 --- a/libs/sketch/src/lib/components/dialog/dialog.component.html +++ b/libs/sketch/src/lib/components/dialog/dialog.component.html @@ -3,7 +3,7 @@ #dialogElement skClickBackdrop (clickedBackdrop)="close.emit()" - (keydown.escape)="close.emit()" + (keydown.escape)="handleEscape($event)" [class.display-flex]="open()" >