Skip to content
Snippets Groups Projects
Commit 19df4ae3 authored by David Dorchies's avatar David Dorchies
Browse files

fix(pab): loss of decimal separator when no more decimal remain

Refs #662
parent 3dc7bfd4
No related branches found
No related tags found
2 merge requests!275Release v4.19.0,!259Resolve "PAB: Suppression intempestive du séparateur décimal lors de la saisie"
Pipeline #172490 canceled
......@@ -1011,10 +1011,11 @@ export class PabTableComponent implements AfterViewInit, AfterViewChecked, OnIni
}
public getCellValue(cell) {
if (typeof cell.model.singleValue === "string") {
cell.model.singleValue = +cell.model.singleValue;
if (typeof cell.model.singleValue === "string" &&
cell.model.singleValue.slice(-1) !== ".") {
cell.model.singleValue = round(cell.model.singleValue, this.nDigits);
}
return round(cell.model.singleValue, this.nDigits);
return cell.model.singleValue;
}
public setCellValue(cell, $event) {
......
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