My code:
Code:
Ext.Wki.ComboBox = Ext.extend(Ext.form.ComboBox, {
initComponent:function() {
Ext.Wki.ComboBox.superclass.initComponent.call(this);
},
onSelect: function(record, index) {
this.clearInvalid()
Ext.Wki.ComboBox.superclass.onSelect.apply(this, arguments);
return true;
},
validateValue : function(value){
if (this.allowBlank == false && value.trim() == "") {
this.markInvalid()
return false;
}
return (Ext.Wki.ComboBox.superclass.validateValue.call(this, value))
}
});
I would like to force the field to be valid if I select an item from the combo despite the rules of validation.
How can I prevent the validateValue be launched after the onSelect?
Thank you