From 29ebd650a8bebf2e68fa06c6fc610467c56175cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grand?= <francois.grand@inrae.fr> Date: Wed, 15 Nov 2023 13:45:06 +0000 Subject: [PATCH] fix: specify input mode on mobile --- src/app/components/pab-table/pab-table.component.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/components/pab-table/pab-table.component.html b/src/app/components/pab-table/pab-table.component.html index 733be4fb2..561ff6c24 100644 --- a/src/app/components/pab-table/pab-table.component.html +++ b/src/app/components/pab-table/pab-table.component.html @@ -88,7 +88,9 @@ <input matInput *ngIf="isNumberInput(cell)" type="text" required [ngModel]="getCellValue(cell)" (ngModelChange)="setCellValue(cell,$event)" - (input)="inputValueChanged($event, cell)" (keypress) ="invalidNANInputValue($event)"> + (input)="inputValueChanged($event, cell)" (keypress) ="invalidNANInputValue($event)" + pattern="^-?([0-9]*\.)?([0-9]+[Ee]-?)?[0-9]+$" inputmode="numeric" + > <mat-select #selectWidget *ngIf="isSelect(cell)" [value]="cell.modelValue" (selectionChange)="loiDebitSelected($event, cell)"> -- GitLab