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]>
(cherry picked from commit e7d049b)
  • Loading branch information
strido authored and martin-g committed Nov 19, 2024
1 parent 219d45c commit 8c129ab
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 8c129ab

Please sign in to comment.