X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=Roo%2Fform%2FTextField.js;h=825f87feedad1f061667630f724ca1f725470cfc;hp=20a8c7dd0f13cc57b3a1c0d6bb5aba87b7fa3c05;hb=c8f8920eb8987608a2542fe4fdba60cc2fb9178c;hpb=6b47119073cbc255d58a5367a6f787a8edda51cd 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.