Skip to content
Snippets Groups Projects
Commit 48aa30c0 authored by Jérémie BRISON's avatar Jérémie BRISON
Browse files

fix(navigation) : add enter key on form

parent 6f32ee86
No related branches found
No related tags found
3 merge requests!85Recette,!84Dev,!82Fix/navigation keyboard
......@@ -11,6 +11,7 @@
class="btn-primary small next"
(click)="goToNextPage()"
[disabled]="!isValid"
type="submit"
[ngClass]="{ invalid: !isValid }"
>
<div class="rowBtn" fxLayout="row" fxLayoutAlign="center center">
......
......@@ -25,6 +25,6 @@
.chevronRight {
height: 24px;
width: 24px;
stroke: $white;
stroke: inherit;
margin-left: 10px;
}
......@@ -105,7 +105,7 @@
</ul>
</div>
</div>
<form [formGroup]="accountForm" *ngIf="accountForm && !profile">
<form [formGroup]="accountForm" *ngIf="accountForm && !profile" (keyup.enter)="isPageValid && !isEditMode? nextPage() : null">
<div *ngIf="currentPage == pageTypeEnum.accountInfo" class="page">
<div class="title">
<h3>Qui êtes-vous ?</h3>
......@@ -241,7 +241,7 @@
</div>
</div>
</form>
<form [formGroup]="structureForm" *ngIf="structureForm">
<form [formGroup]="structureForm" *ngIf="structureForm" (keyup.enter)="isPageValid && !isEditMode? nextPage() : null">
<div *ngIf="currentPage == pageTypeEnum.structureNameAndAddress" class="page">
<div class="title">
<h3>Quelle structure voulez-vous réferencer ?</h3>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment