PDA

View Full Version : How to prevent focus onTriggerClick ?



DTT_11-1983
8 Nov 2009, 11:19 PM
I commented 2 lines that give focus but no effect:


,onTriggerClick : function(e){
if(this.disabled){
return;
}
if(this.isExpanded()){
this.collapse();
this.el.focus();
}else {
//this.onFocus({});
if(this.triggerAction == 'all') {
this.doQuery(this.allQuery, true);
} else {
this.doQuery(this.getRawValue());
}
//this.el.focus();
}
myApp.AutoComplete.superclass.onTriggerClick.call(this);
}


Thanks for help !