mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-25 22:27:39 +00:00
Merge pull request #188 from markus-k/master
Return false in click handler to prevent default behaviour.
This commit is contained in:
commit
c4d42b7e68
@ -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 () {
|
||||||
|
Loading…
Reference in New Issue
Block a user