allowed: '0123456789',
+ max_length: 15,
+
/**
* @cfg {String} defaultDialCode The default dial code when initializing the input
*/
var input = {
tag: 'input',
id : id,
+ maxlength: this.max_length,
cls : 'form-control tel-input',
autocomplete: 'new-password'
};
cls: 'hidden-number-input'
};
- if(!this.max_length) {
+ if(this.max_length) {
input.maxlength = this.max_length;
}