projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b47119
)
fix whitespace removal
author
Alan Knowles
<alan@roojs.com>
Mon, 29 Jul 2019 03:46:25 +0000
(11:46 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 29 Jul 2019 03:46:25 +0000
(11:46 +0800)
Roo/form/TextField.js
patch
|
blob
|
history
diff --git
a/Roo/form/TextField.js
b/Roo/form/TextField.js
index
20a8c7d
..
825f87f
100644
(file)
--- 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.