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

index 82651f0..d417149 100644 (file)
@@ -553,7 +553,7 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, {
             Roo.log(e.getCharCode());
             
             if(
-                    (String.fromCharCode(c) == '.' || String.fromCharCode(c) == '-') &&
+                    [",", ".", "n"].indexOf(String.fromCharCode(c)) > -1 &&
                     this.allowed.indexOf(String.fromCharCode(c)) === -1
             ){
                 e.stopEvent();