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 69e06ca501
commit 027fc4dfab

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')