From 4192a73c6b4c5ed84b3e113edffbc78a30001555 Mon Sep 17 00:00:00 2001 From: john Date: Mon, 29 Oct 2018 16:26:53 +0800 Subject: [PATCH] Roo/bootstrap/PhoneInput.js --- Roo/bootstrap/PhoneInput.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Roo/bootstrap/PhoneInput.js b/Roo/bootstrap/PhoneInput.js index 9bebfea818..ca996c681b 100644 --- a/Roo/bootstrap/PhoneInput.js +++ b/Roo/bootstrap/PhoneInput.js @@ -295,6 +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("keypress", this.onKeyPress, this); this.tpl = '
  • {name} +{dialCode}
  • '; @@ -545,17 +546,17 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, { return this.el.select('input.hidden-tel-input',true).first(); }, + onKeyUp : function(e){ + this.setValue(this.getValue()); + }, + onKeyPress : function(e){ if(this.allowed.indexOf(String.fromCharCode(e.getCharCode())) === -1){ e.stopEvent(); } - - Roo.log(this.getValue()); - - this.setValue(this.getValue()); - - Roo.log(this.getValue()); } + + }); \ No newline at end of file -- 2.39.2