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 (#1039)

Co-authored-by: Erik Strid <[email protected]>
  • Loading branch information
strido and Erik Strid authored Nov 19, 2024
1 parent b25c831 commit e7d049b
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 e7d049b

Please sign in to comment.