X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-ui-debug.js;h=8e00541f52456560bddaf12be677b6887718e1b5;hb=d797239a600c927a721556694e9ca3faf26a3337;hp=1b261d389db568a9f5734060e06d4d8bbe98b9db;hpb=d01a4dba6310ab6dc6fe56d60b0458a4769d3b83;p=roojs1 diff --git a/roojs-ui-debug.js b/roojs-ui-debug.js index 1b261d389d..8e00541f52 100644 --- a/roojs-ui-debug.js +++ b/roojs-ui-debug.js @@ -17081,11 +17081,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.