Skip to content

Commit c4d42b7

Browse files
author
Tomas Kirda
committed
Merge pull request #188 from markus-k/master
Return false in click handler to prevent default behaviour.
2 parents e572acf + c4cd2fb commit c4d42b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/jquery.autocomplete.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@
193193
// Listen for click event on suggestions list:
194194
container.on('click.autocomplete', suggestionSelector, function () {
195195
that.select($(this).data('index'));
196+
return false;
196197
});
197198

198199
that.fixPositionCapture = function () {

0 commit comments

Comments
 (0)