Roo/bootstrap/NumberField.js
authorjohn <john@roojs.com>
Tue, 12 Jun 2018 03:45:43 +0000 (11:45 +0800)
committerjohn <john@roojs.com>
Tue, 12 Jun 2018 03:45:43 +0000 (11:45 +0800)
Roo/bootstrap/NumberField.js

index 62ececa..51e4641 100644 (file)
@@ -219,7 +219,7 @@ Roo.extend(Roo.bootstrap.NumberField, Roo.bootstrap.Input, {
             
             this.hiddenEl().dom.value = (v === null || v === undefined ? '' : v);
             
-            this.inputEl().dom.value = (this.thousandsDelimiter ? Roo.util.Format.number(v) : v);
+            this.inputEl().dom.value = (this.thousandsDelimiter ? Roo.util.Format.number(v, this.decimalPrecision) : v);
             
             this.validate();
         }