Roo/bootstrap/PhoneInput.js
authorjohn <john@roojs.com>
Mon, 29 Oct 2018 08:15:16 +0000 (16:15 +0800)
committerjohn <john@roojs.com>
Mon, 29 Oct 2018 08:15:16 +0000 (16:15 +0800)
Roo/bootstrap/PhoneInput.js

index d7b42c2..9797c2d 100644 (file)
@@ -550,10 +550,8 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, {
             var k = e.getKey();
             var c = e.getCharCode();
             
-            Roo.log(String.fromCharCode(c));
-            
             if(
-                    [",", "."].indexOf(String.fromCharCode(c)) > -1 &&
+                    [",", "."].indexOf(String.fromCharCode(c)) > -1 ||
                     this.allowed.indexOf(String.fromCharCode(c)) === -1
             ){
                 e.stopEvent();