X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2Fform%2FTextField.js;h=a50d6ca2ecb09a2b96aab76df33d0c12cd404a48;hb=7a8cf25e96228f4cd5384b0c636d0e687ec4deb6;hp=825f87feedad1f061667630f724ca1f725470cfc;hpb=db5aeb8074a2601ca02f590250a3a289a1df001f;p=roojs1 diff --git a/Roo/form/TextField.js b/Roo/form/TextField.js index 825f87feed..a50d6ca2ec 100644 --- a/Roo/form/TextField.js +++ b/Roo/form/TextField.js @@ -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+/,'')); }, /**