Always strip comma regardless of number preference so parse float always works.

This commit is contained in:
nathan 2023-04-24 09:42:09 -06:00
parent a88c423abe
commit 9b57b24f0e

View File

@ -124,9 +124,9 @@ export class Et2Number extends Et2Textbox
const sep = format ? format[0] : '.';
// Remove separator so parseFloat works
if(typeof val === 'string' && format && sep && sep !== '.')
if(typeof val === 'string')
{
val = val.replace(sep, '.');
val = val.replace(",", '.');
}
if(typeof this.precision !== 'undefined')