From 7a8cf25e96228f4cd5384b0c636d0e687ec4deb6 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 29 Jul 2019 13:42:58 +0800 Subject: [PATCH] Changed Roo/form/TextField.js --- Roo/form/TextField.js | 4 ++++ 1 file changed, 4 insertions(+) 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+/,'')); }, /** -- 2.39.2