From 7ddaf3264638497d030d7120f701d6f5c6d748e3 Mon Sep 17 00:00:00 2001 From: john Date: Mon, 29 Oct 2018 16:16:14 +0800 Subject: [PATCH] Roo/bootstrap/PhoneInput.js --- Roo/bootstrap/PhoneInput.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Roo/bootstrap/PhoneInput.js b/Roo/bootstrap/PhoneInput.js index 321ccb2cc0..228b274df3 100644 --- a/Roo/bootstrap/PhoneInput.js +++ b/Roo/bootstrap/PhoneInput.js @@ -549,17 +549,7 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, { var k = e.getKey(); var c = e.getCharCode(); - - if( - (String.fromCharCode(c) == '.' || String.fromCharCode(c) == '-') && - this.allowed.indexOf(String.fromCharCode(c)) === -1 - ){ - e.stopEvent(); - } - - // if(!Roo.isIE && (e.isSpecialKey() || k == e.BACKSPACE || k == e.DELETE)){ - // return; - // } + if(this.allowed.indexOf(String.fromCharCode(c)) === -1){ e.stopEvent(); } -- 2.39.2