From c8f8920eb8987608a2542fe4fdba60cc2fb9178c Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 29 Jul 2019 11:46:25 +0800 Subject: [PATCH] fix whitespace removal --- Roo/form/TextField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Roo/form/TextField.js b/Roo/form/TextField.js index 20a8c7dd0f..825f87feed 100644 --- a/Roo/form/TextField.js +++ b/Roo/form/TextField.js @@ -174,7 +174,7 @@ Roo.extend(Roo.form.TextField, Roo.form.Field, { // private - clean the leading white space cleanLeadingSpace : function(e) { - this.setValue(this.getValue().replace(/^\s+/,'')); + this.setValue((this.getValue() + '').replace(/^\s+/,'')); }, /** * Resets the current field value to the originally-loaded value and clears any validation messages. -- 2.39.2