Skip to content

Commit

Permalink
Merge pull request #563 from scireum/meg/IEscrollfix
Browse files Browse the repository at this point in the history
Stops autocomplete from closing when scrolling in IE
  • Loading branch information
andyHa authored Feb 1, 2019
2 parents 8274673 + e469e7b commit 3023312
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,11 @@
}
});

this.element.focusout(function () {
this.element.focusout(function (event) {
if ($(event.relatedTarget).hasClass('autocomplete-wrapper')) {
this.focus();
return false;
}
completions.hide();
});

Expand Down

0 comments on commit 3023312

Please sign in to comment.