From a2cf770918b393247a3757b546fab5e85c92fa49 Mon Sep 17 00:00:00 2001 From: john Date: Mon, 29 Oct 2018 16:27:56 +0800 Subject: [PATCH] Roo/bootstrap/PhoneInput.js --- Roo/bootstrap/PhoneInput.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Roo/bootstrap/PhoneInput.js b/Roo/bootstrap/PhoneInput.js index 4a833ae4ee..242657b1b6 100644 --- a/Roo/bootstrap/PhoneInput.js +++ b/Roo/bootstrap/PhoneInput.js @@ -546,10 +546,12 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, { return this.el.select('input.hidden-tel-input',true).first(); }, + // after setting val onKeyUp : function(e){ this.setValue(this.getValue()); }, + // filter onKeyPress : function(e){ if(this.allowed.indexOf(String.fromCharCode(e.getCharCode())) === -1){ e.stopEvent(); -- 2.39.2