diff --git a/src/app/components/pab-table/pab-table.component.html b/src/app/components/pab-table/pab-table.component.html index 561ff6c243551856d136adde0555561cdf13334a..283b07d1b3ee73e35bef122f2f5b08c000a55ab8 100644 --- a/src/app/components/pab-table/pab-table.component.html +++ b/src/app/components/pab-table/pab-table.component.html @@ -89,7 +89,7 @@ <input matInput *ngIf="isNumberInput(cell)" type="text" required [ngModel]="getCellValue(cell)" (ngModelChange)="setCellValue(cell,$event)" (input)="inputValueChanged($event, cell)" (keypress) ="invalidNANInputValue($event)" - pattern="^-?([0-9]*\.)?([0-9]+[Ee]-?)?[0-9]+$" inputmode="numeric" + pattern="^-?[0-9]*\.?[0-9]*$" inputmode="numeric" > <mat-select #selectWidget *ngIf="isSelect(cell)" [value]="cell.modelValue" diff --git a/src/app/components/pab-table/pab-table.component.ts b/src/app/components/pab-table/pab-table.component.ts index 897ba37c38e572f39f665846772c0411ad091e86..32f6b8248eb43fc66708d86e10cf3854ca62153a 100644 --- a/src/app/components/pab-table/pab-table.component.ts +++ b/src/app/components/pab-table/pab-table.component.ts @@ -1389,9 +1389,6 @@ export class PabTableComponent implements AfterViewInit, AfterViewChecked, OnIni } public setCellValue(cell, $event) { - if (/^-?[0-9]*\.?[0-9]*$/g.test($event) === false) { - $event = $event.replace(/[^0-9\-.]/g, ''); - } if($event !== "-" && $event !== "") { try { cell.model.singleValue = $event;