*Fix on enterkey pressed  form submission issue in dmp editor
This commit is contained in:
Kristian Ntavidi 2021-12-22 15:29:03 +02:00
parent 814a9b2fee
commit 4c2e17e987
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<div class="main-content">
<div class="container-fluid">
<form *ngIf="formGroup" [formGroup]="formGroup" (ngSubmit)="formSubmit()">
<div *ngIf="formGroup" [formGroup]="formGroup" class="form-container">
<!-- DMP Header -->
<div [hidden]="this.step >= stepsBeforeDatasets" class="fixed-editor-header">
<div class="card editor-header">
@ -18,7 +18,7 @@
<div>{{'DMP-EDITOR.ACTIONS.SAVE' | translate}}</div>
</div>
<div *ngIf="!isNew && formGroup.enabled && !lockStatus">
<button *ngIf="!isFinalized" mat-raised-button type="submit" class="save-btn">
<button *ngIf="!isFinalized" mat-raised-button (click)="formSubmit()" class="save-btn">
{{'DMP-EDITOR.ACTIONS.SAVE' | translate}}
</button>
</div>
@ -93,7 +93,7 @@
</div>
</div>
</div>
</form>
</div>
</div>
</div>

View File

@ -8,7 +8,7 @@
}
}
form {
.form-container {
height: calc(100vh - 124px);
margin-top: 6rem;
}