From fa31935ccd4b966fe8297c2d8534d03d0302f00d Mon Sep 17 00:00:00 2001 From: Alan Date: Tue, 26 Mar 2024 17:36:08 +0800 Subject: [PATCH] disable thousand seperator --- Roo/form/NumberField.js | 2 +- docs/src/Roo_form_NumberField.js.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Roo/form/NumberField.js b/Roo/form/NumberField.js index 5fa9597398..ac0ab795e7 100644 --- a/Roo/form/NumberField.js +++ b/Roo/form/NumberField.js @@ -140,7 +140,7 @@ Roo.extend(Roo.form.NumberField, Roo.form.TextField, { setValue : function(v){ v = this.fixPrecision(v); if(this.thousandSeparator != ''){ - v = Roo.util.Format.number(v, this.decimalPrecision, this.thousandSeparator); + // v = Roo.util.Format.number(v, this.decimalPrecision, this.thousandSeparator); } Roo.form.NumberField.superclass.setValue.call(this, String(v).replace(".", this.decimalSeparator)); }, diff --git a/docs/src/Roo_form_NumberField.js.html b/docs/src/Roo_form_NumberField.js.html index c22095adb9..5d40d7b657 100644 --- a/docs/src/Roo_form_NumberField.js.html +++ b/docs/src/Roo_form_NumberField.js.html @@ -76,6 +76,7 @@ if(this.allowDecimals){ allowed += this.decimalSeparator; } + allowed += this.thousandSeparator; if(this.allowNegative){ allowed += "-"; } -- 2.39.2