Roo/bootstrap/NumberField.js
authorjohn <john@roojs.com>
Mon, 25 Jun 2018 09:09:34 +0000 (17:09 +0800)
committerjohn <john@roojs.com>
Mon, 25 Jun 2018 09:09:34 +0000 (17:09 +0800)
Roo/bootstrap/NumberField.js

index 941bfd1..4312964 100644 (file)
@@ -217,7 +217,7 @@ Roo.extend(Roo.bootstrap.NumberField, Roo.bootstrap.Input, {
         
         if(this.rendered){
             
-            this.hiddenEl().dom.value = (v === null || v === undefined ? '' : v);
+            this.hiddenEl().dom.value = (v === null || v === undefined || v == 0 ? '' : v);
             
             this.inputEl().dom.value = Roo.util.Format.number(v, this.decimalPrecision, 
                 this.thousandsDelimiter || ''