allowed: '0123456789',
+ max_length: 15,
+
/**
* @cfg {String} defaultDialCode The default dial code when initializing the input
*/
var input = {
tag: 'input',
id : id,
+ type: 'number',
+ maxlength: this.max_length,
cls : 'form-control tel-input',
autocomplete: 'new-password'
};
var c = e.getCharCode();
if(
- (String.fromCharCode(c) == '.' || String.fromCharCode(c) == '-') &&
+ [",", "."].indexOf(String.fromCharCode(c)) > -1 ||
this.allowed.indexOf(String.fromCharCode(c)) === -1
){
e.stopEvent();