X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-debug.js;h=9f9518232b13190483f2fd3af575e19c72849a80;hb=d797239a600c927a721556694e9ca3faf26a3337;hp=5fb01cc41adf2bc37d74387cdb42a7675316614e;hpb=d01a4dba6310ab6dc6fe56d60b0458a4769d3b83;p=roojs1 diff --git a/roojs-debug.js b/roojs-debug.js index 5fb01cc41a..9f9518232b 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -39532,11 +39532,11 @@ 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+/,'')); + if (this.constructor == Roo.Form.TextField && 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.