I dont know if this done on purpose but in my form the f2 key is triggering filter function.
When user selects some item on dropdown and presses f2 key, it is filtering the form but the dropdown is opening.
The dropdown shouldnt toggled for every keypress.
the fix
AbstractChosen.prototype.keyup_checker = function(evt) {
var stroke, _ref;
stroke = (_ref = evt.which) != null ? _ref : evt.keyCode;
this.search_field_scale();
switch (stroke) {
case 8:
if (this.is_multiple && this.backstroke_length < 1 && this.choices_count() > 0) {
return this.keydown_backstroke();
} else if (!this.pending_backstroke) {
this.result_clear_highlight();
return this.results_search();
}
break;
case 13:
evt.preventDefault();
if (this.results_showing) {
return this.result_select(evt);
}
break;
case 27:
if (this.results_showing) {
this.results_hide();
}
return true;
case 9:
case 38:
case 40:
case 16:
case 91:
case 17:
break;
default:
//if not showing then do not toggle
if (this.results_showing) {
return this.results_search();
}
}
};
I dont know if this done on purpose but in my form the f2 key is triggering filter function.
When user selects some item on dropdown and presses f2 key, it is filtering the form but the dropdown is opening.
The dropdown shouldnt toggled for every keypress.
the fix