Et2NumberReadonly: If value is null, just show nothing

This commit is contained in:
nathan 2023-04-11 17:08:18 -06:00
parent f8904ef126
commit 32ce18b832

View File

@ -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);
}