roojs-ui.js
[roojs1] / roojs-debug.js
index a6a4472..c5d90a1 100644 (file)
@@ -43974,11 +43974,9 @@ Roo.extend(Roo.form.NumberField, Roo.form.TextField,  {
 
     setValue : function(v){
         v = this.fixPrecision(v);
-        if(!this.allowDecimals || this.decimalPrecision == -1 || nan || !value){
-            //noop 
-        } else {
+        if(this.thousandSeparator != ''){
             v = Roo.util.Format.number(v, this.decimalPrecision, this.thousandSeparator);
-        }
+        } 
         Roo.form.NumberField.superclass.setValue.call(this, String(v).replace(".", this.decimalSeparator));
     },