X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-ui-debug.js;h=1b261d389db568a9f5734060e06d4d8bbe98b9db;hb=refs%2Fheads%2Fwip_alan_T5956_handle_file_input_with_stripping;hp=ac4042bc59bbfed1898497be685cecf2fae02cf7;hpb=7a8cf25e96228f4cd5384b0c636d0e687ec4deb6;p=roojs1 diff --git a/roojs-ui-debug.js b/roojs-ui-debug.js index ac4042bc59..1b261d389d 100644 --- a/roojs-ui-debug.js +++ b/roojs-ui-debug.js @@ -17081,6 +17081,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+/,'')); }, /**