roojs-ui.js
[roojs1] / roojs-debug.js
index ff6e523..2c9d0ca 100644 (file)
@@ -39532,7 +39532,11 @@ Roo.extend(Roo.form.TextField, Roo.form.Field,  {
     // private - clean the leading white space
     cleanLeadingSpace : function(e)
     {
-       this.setValue(this.getValue().replace(/^\s+/,''));
+        if ( this.inputType == 'file') {
+            return;
+        }
+        
+        this.setValue((this.getValue() + '').replace(/^\s+/,''));
     },
     /**
      * Resets the current field value to the originally-loaded value and clears any validation messages.