From 027fc4dfab222f9fdb7ce984e84f04ee16c78695 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 24 Apr 2023 09:42:09 -0600 Subject: [PATCH] Always strip comma regardless of number preference so parse float always works. --- api/js/etemplate/Et2Textbox/Et2Number.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/Et2Textbox/Et2Number.ts b/api/js/etemplate/Et2Textbox/Et2Number.ts index 6cd955a3c1..879a20adce 100644 --- a/api/js/etemplate/Et2Textbox/Et2Number.ts +++ b/api/js/etemplate/Et2Textbox/Et2Number.ts @@ -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')