From: john Date: Mon, 29 Oct 2018 08:15:16 +0000 (+0800) Subject: Roo/bootstrap/PhoneInput.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=e2ce3d3a4b4a4782c5c6240af892d0e1dc9cd912 Roo/bootstrap/PhoneInput.js --- diff --git a/Roo/bootstrap/PhoneInput.js b/Roo/bootstrap/PhoneInput.js index d7b42c2eb2..9797c2d204 100644 --- a/Roo/bootstrap/PhoneInput.js +++ b/Roo/bootstrap/PhoneInput.js @@ -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();