mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
Always strip comma regardless of number preference so parse float always works.
This commit is contained in:
parent
69e06ca501
commit
027fc4dfab
@ -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