projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27b68e1
)
Roo/bootstrap/PhoneInput.js
author
john
<john@roojs.com>
Thu, 29 Mar 2018 02:39:11 +0000
(10:39 +0800)
committer
john
<john@roojs.com>
Thu, 29 Mar 2018 02:39:11 +0000
(10:39 +0800)
Roo/bootstrap/PhoneInput.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/PhoneInput.js
b/Roo/bootstrap/PhoneInput.js
index
2ddd5c9
..
93251e9
100644
(file)
--- a/
Roo/bootstrap/PhoneInput.js
+++ b/
Roo/bootstrap/PhoneInput.js
@@
-480,7
+480,7
@@
Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, {
var d = this.getDialCode(v);
//invalid dial code
- if(
!d || d.length == 0 || v
.length == 0) {
+ if(
v.length == 0 || !d || d
.length == 0) {
if(this.rendered){
this.inputEl().dom.value = (v === null || v === undefined ? '' : v);
this.hiddenEl().dom.value = (v === null || v === undefined ? '' : v);