From: Alan Knowles Date: Mon, 29 Jul 2019 03:46:25 +0000 (+0800) Subject: fix whitespace removal X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=c8f8920eb8987608a2542fe4fdba60cc2fb9178c fix whitespace removal --- 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.