mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-15 19:20:47 +01:00
Always strip comma regardless of number preference so parse float always works.
This commit is contained in:
parent
a88c423abe
commit
9b57b24f0e
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user