question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TAB event doesn't trigger typeahead:selecetd

See original GitHub issue

How to repeat :

 var myCustomCallback = function(eventObject, suggestionObject, datasetName) {
    alert('hello');
 }

myTypeAhead.on('typeahead:selected', myCustomCallback);

Then navigate on your autocomplete field, type few letter so you get a list of items, and then press TAB. It will select the first item, but it won’t trigger the :selected event.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
channainfocommented, Jan 27, 2015

@jharding it works great with typeahead:autocompleted thanks alot.

1reaction
Wbmstrmjbcommented, Mar 4, 2014

This would be great as an option. I am sure some people might not want TAB to trigger selected, but I (and apparently the OP) would find it useful.

Maybe an addition to “autoselect” where TAB could also be used in addition to “ENTER”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Triggering "selected" event in typeahead.js - Stack Overflow
I am binding functions to the typeahead:selected and typeahead:autocompleted events so that I can populate some other hidden input fields in the ...
Read more >
jQuery Typeahead Search Configuration - RunningCoder
This function will trigger after the regular behaviors. onDropdownFilter (node, a, item, event). Will be executed when a dropdown filter is selected. Requires ......
Read more >
Typeahead input field - ServiceNow Developers
Users can interact with typeahead through the input field and dropdown panel. This includes any field decorators. Selection. A user can select the...
Read more >
Angular directives for Bootstrap - AngularUI
typeahead -should-select($event) $ (Default: null ) - A callback executed when a keyup event that might trigger a selection occurs. Selection will only...
Read more >
Building an accessible autocomplete control - Adam Silver
Users can select a suggestion to complete their entry quickly and ... But this doesn't work for an autocomplete control because the text...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found