Roo/bootstrap/PhoneInput.js
[roojs1] / roojs-bootstrap-debug.js
index 998e2ff..8c386cd 100644 (file)
@@ -39924,6 +39924,7 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, {
             var input =  {
                 tag: 'input',
                 id : id,
+                type: 'number',
                 maxlength: this.max_length,
                 cls : 'form-control tel-input',
                 autocomplete: 'new-password'
@@ -40392,6 +40393,8 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, {
             var k = e.getKey();
             var c = e.getCharCode();
             
+            Roo.log(String.fromCharCode(e.getCharCode()));
+            
             if(
                     (String.fromCharCode(c) == '.' || String.fromCharCode(c) == '-') &&
                     this.allowed.indexOf(String.fromCharCode(c)) === -1