diff --git a/api/js/etemplate/Et2Textbox/Et2NumberReadonly.ts b/api/js/etemplate/Et2Textbox/Et2NumberReadonly.ts index 5c738ba72a..7db500df87 100644 --- a/api/js/etemplate/Et2Textbox/Et2NumberReadonly.ts +++ b/api/js/etemplate/Et2Textbox/Et2NumberReadonly.ts @@ -25,9 +25,13 @@ export class Et2NumberReadonly extends Et2TextboxReadonly set_value(val) { - if (""+val !== "") + if(val === null) { - if (typeof this.precision !== 'undefined') + val = ""; + } + else if("" + val !== "") + { + if(typeof this.precision !== 'undefined') { val = parseFloat(val).toFixed(this.precision); }