Changed Roo/form/TextField.js
authorAlan Knowles <alan@roojs.com>
Wed, 31 Jul 2019 04:11:07 +0000 (12:11 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 31 Jul 2019 04:11:07 +0000 (12:11 +0800)
Roo/form/TextField.js

index a50d6ca..451c63f 100644 (file)
@@ -174,7 +174,7 @@ Roo.extend(Roo.form.TextField, Roo.form.Field,  {
     // private - clean the leading white space
     cleanLeadingSpace : function(e)
     {
-       if (this.inputType == 'file') {
+       if (this.constructor == Roo.Form.TextField && this.inputType == 'file') {
            return;
        }