RED-6960 - enter should confirm modal if it is changed or if it is not in edit mode

This commit is contained in:
Valentin Mihai 2024-02-20 23:30:21 +02:00
parent 59f2dde9ec
commit 7b29cc5f31

View File

@ -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)
) {