Skip to content

Commit

Permalink
Fix tab glitch when tabing from and to an autocomplete field, which r…
Browse files Browse the repository at this point in the history
…esulted in a dropdown that didn't open on first character when returning to the field
  • Loading branch information
Erik Strid committed Nov 18, 2024
1 parent 6619dd8 commit 888adfb
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@
//workaround for IE. Clicks on scrollbar trigger
//'blur' event on input field. (See https://issues.apache.org/jira/browse/WICKET-5882)
if (menuId !== document.activeElement.id && (menuId + "-container") !== document.activeElement.id) {
hideAutoCompleteTimer = window.setTimeout(hideAutoComplete, 500);
hideAutoCompleteTimer = window.setTimeout(function() {
hideAutoComplete();
isTriggeredChange = false;
triggerChangeOnHide = false;
}, 500);
} else {
jQuery(this).trigger("focus");
}
Expand Down

0 comments on commit 888adfb

Please sign in to comment.