Skip to content

Commit

Permalink
[MOSIP-21332] Fixed the issue when curser is in 5th field and when we…
Browse files Browse the repository at this point in the history
… are trying to give input using virtual keyboard curser pointer is automatically moved to 1st field

Signed-off-by: GurukiranP <[email protected]>
  • Loading branch information
gk-4VII committed Feb 22, 2024
1 parent 0635b9d commit df305bd
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 df305bd

Please sign in to comment.