From 7b29cc5f317838df075a939f2679bd899ef843bf Mon Sep 17 00:00:00 2001 From: Valentin Mihai Date: Tue, 20 Feb 2024 23:30:21 +0200 Subject: [PATCH] RED-6960 - enter should confirm modal if it is changed or if it is not in edit mode --- src/lib/dialog/base-dialog.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/dialog/base-dialog.component.ts b/src/lib/dialog/base-dialog.component.ts index e89d880..5fd2b88 100644 --- a/src/lib/dialog/base-dialog.component.ts +++ b/src/lib/dialog/base-dialog.component.ts @@ -92,7 +92,7 @@ export abstract class BaseDialogComponent implements AfterViewInit, OnDestroy { if ( this.valid && !this.disabled && - this.changed && + (this.changed || !this._isInEditMode) && this.#dialog.openDialogs.length === 1 && (isDialogSelected || isTextInputSelected) ) {