2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-22 12:55:12 +00:00

Merge pull request #188 from markus-k/master

Return false in click handler to prevent default behaviour.
This commit is contained in:
Tomas Kirda 2016-04-14 08:18:32 -05:00
commit c4d42b7e68

View File

@ -193,6 +193,7 @@
// Listen for click event on suggestions list: // Listen for click event on suggestions list:
container.on('click.autocomplete', suggestionSelector, function () { container.on('click.autocomplete', suggestionSelector, function () {
that.select($(this).data('index')); that.select($(this).data('index'));
return false;
}); });
that.fixPositionCapture = function () { that.fixPositionCapture = function () {