mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-25 14:17:45 +00:00
Select hint only if onHint callback specified.
This commit is contained in:
parent
16a8223db7
commit
2f260cec63
@ -308,11 +308,12 @@
|
||||
}
|
||||
return;
|
||||
case keys.TAB:
|
||||
case keys.RETURN:
|
||||
if (e.which === keys.TAB && that.hint) {
|
||||
if (that.hint && that.options.onHint) {
|
||||
that.selectHint();
|
||||
return;
|
||||
}
|
||||
// Fall through to RETURN
|
||||
case keys.RETURN:
|
||||
if (that.selectedIndex === -1) {
|
||||
that.hide();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user