From: john Date: Mon, 29 Oct 2018 08:27:33 +0000 (+0800) Subject: Roo/bootstrap/PhoneInput.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=ff7902f3fb48a61e88223066c9294e0c118e57bf;hp=4192a73c6b4c5ed84b3e113edffbc78a30001555;p=roojs1 Roo/bootstrap/PhoneInput.js --- diff --git a/Roo/bootstrap/PhoneInput.js b/Roo/bootstrap/PhoneInput.js index ca996c681b..4a833ae4ee 100644 --- a/Roo/bootstrap/PhoneInput.js +++ b/Roo/bootstrap/PhoneInput.js @@ -295,7 +295,7 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, { this.list.on('mouseover', this.onViewOver, this); this.list.on('mousemove', this.onViewMove, this); - // this.inputEl().on("keyup", this.onKeyUp, this); + this.inputEl().on("keyup", this.onKeyUp, this); this.inputEl().on("keypress", this.onKeyPress, this); this.tpl = '
  • {name} +{dialCode}
  • '; @@ -551,12 +551,9 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, { }, onKeyPress : function(e){ - if(this.allowed.indexOf(String.fromCharCode(e.getCharCode())) === -1){ e.stopEvent(); } } - - }); \ No newline at end of file