Skip to content

Commit

Permalink
Merge pull request #284 from GurukiranP/MOSIP-21332
Browse files Browse the repository at this point in the history
[MOSIP-21332] Fixed the issue when curser is in 5th field and when we are trying to give input using virtual keyboard curser pointer is automatically moved to 1st field.
  • Loading branch information
aranaravi authored Feb 22, 2024
2 parents 0635b9d + df305bd commit ee24b99
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,13 @@ <h3>{{ 'machines.header' | translate }}</h3>

<mat-form-field>
<input
#keyboardRef
#validity
matInput
[min]="minDate"
[matDatepicker]="picker"
formControlName="validity"
(focus)="scrollPage(validity, 'primary', 'validity', 4)"
id="validity"
placeholder="{{ 'machines.validity' | translate }}"
required
Expand Down Expand Up @@ -161,7 +164,7 @@ <h3>{{ 'machines.header' | translate }}</h3>
<textarea
#keyboardRef
#publicKey
(focus)="scrollPage(publicKey, 'primary', 'publicKey', 0)"
(focus)="scrollPage(publicKey, 'primary', 'publicKey', 5)"
formControlName="publicKey"
id="publicKey"
matInput
Expand All @@ -184,7 +187,7 @@ <h3>{{ 'machines.header' | translate }}</h3>
<textarea
#keyboardRef
#signPublicKey
(focus)="scrollPage(signPublicKey, 'primary', 'signPublicKey', 0)"
(focus)="scrollPage(signPublicKey, 'primary', 'signPublicKey', 6)"
formControlName="signPublicKey"
id="signPublicKey"
matInput
Expand Down

0 comments on commit ee24b99

Please sign in to comment.