var input = {
tag: 'input',
id : id,
- type: 'number',
+ // type: 'number', -- do not use number - we get the flaky up/down arrows.
maxlength: this.max_length,
cls : 'form-control tel-input',
autocomplete: 'new-password'
this.setValue(this.getValue());
},
- onKeyDown : function(e){
+ onKeyPress : function(e){
if(this.allowed.indexOf(String.fromCharCode(e.getCharCode())) === -1){
e.stopEvent();
}