RED-6960 - Enter should confirm a modal window by default

This commit is contained in:
Valentin Mihai 2024-02-06 20:40:13 +02:00
parent 7656cd6000
commit 771a4ca441
3 changed files with 4 additions and 9 deletions

View File

@ -21,6 +21,10 @@ export class ResizeAnnotationDialogComponent extends IqserDialogComponent<
comment: [null], comment: [null],
}); });
constructor() {
super();
}
save() { save() {
const formValue = this.form.getRawValue(); const formValue = this.form.getRawValue();

View File

@ -90,11 +90,6 @@ export class SelectComponent implements AfterViewInit, ControlValueAccessor, OnC
} }
this._propagateChange([...new Set(this._value)]); this._propagateChange([...new Set(this._value)]);
setTimeout(() => {
const saveButton = document.getElementById('saveButton') as HTMLElement;
saveButton?.focus();
}, 50);
} }
} }

View File

@ -115,10 +115,6 @@ export class DownloadDialogComponent extends IqserDialogComponent<DownloadDialog
}); });
} }
override onEnterValidator() {
return this.valid;
}
reportTemplateValueMapper = (reportTemplate: IReportTemplate) => reportTemplate.templateId; reportTemplateValueMapper = (reportTemplate: IReportTemplate) => reportTemplate.templateId;
override close() { override close() {