fix whitespace removal
[roojs1] / roojs-ui-debug.js
index 51530c3..ac4042b 100644 (file)
@@ -17081,7 +17081,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.