From 1094a8a5c8f1fc80918e66277de4e065d6f68474 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 31 Jul 2019 12:11:31 +0800 Subject: [PATCH] Roo/form/TextField.js --- Roo/form/TextField.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Roo/form/TextField.js b/Roo/form/TextField.js index 451c63f936..22189b9375 100644 --- a/Roo/form/TextField.js +++ b/Roo/form/TextField.js @@ -174,11 +174,11 @@ Roo.extend(Roo.form.TextField, Roo.form.Field, { // private - clean the leading white space cleanLeadingSpace : function(e) { - if (this.constructor == Roo.Form.TextField && 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. -- 2.39.2