Fix #5956 - handle file input with stripping text
[roojs1] / roojs-debug.js
index 8541c8d..5fb01cc 100644 (file)
@@ -39532,6 +39532,10 @@ Roo.extend(Roo.form.TextField, Roo.form.Field,  {
     // private - clean the leading white space
     cleanLeadingSpace : function(e)
     {
+       if (this.inputType == 'file') {
+           return;
+       }
+       
        this.setValue((this.getValue() + '').replace(/^\s+/,''));
     },
     /**