Changed Roo/form/TextField.js
authorAlan Knowles <alan@roojs.com>
Mon, 29 Jul 2019 05:42:58 +0000 (13:42 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 29 Jul 2019 05:42:58 +0000 (13:42 +0800)
Roo/form/TextField.js

index 825f87f..a50d6ca 100644 (file)
@@ -174,6 +174,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+/,''));
     },
     /**