You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AsyncRequest event missing argument ... when it should not be fired at all #68
I am trying to set the value of a text field that is being used as typeahead. Because I don't want to trigger a query from Bloodhound, I'm using this line
However, Bloodhound is still trying to fetch some data, even though the silent option is being passed. In fact, typeahead:asyncrequest is still being fired, but with a single argument. I tried debugging, and it seems that the event is being called with dataset = undefined, which cause this behavior.
The point is, how to set the value of the input field without triggering the suggestion menu to open, or even Bloodhound from performing an async request?
All and all, there is a problem at the moment and things are not working as expected.
changed the title [-]AsyncRequest event missing argument ... when it should be be fired at all[/-][+]AsyncRequest event missing argument ... when it should not be fired at all[/+]on Mar 7, 2016
I noticed this too. Only first parameter is available in the next function and the others are undefined. Document says they should be available. bind('typeahead:asyncrequest', function(a, b, c) { //b and c are undefined });
Activity
[-]AsyncRequest event missing argument ... when it should be be fired at all[/-][+]AsyncRequest event missing argument ... when it should not be fired at all[/+]jisotalo commentedon Nov 27, 2016
I noticed this too. Only first parameter is available in the next function and the others are undefined. Document says they should be available.
bind('typeahead:asyncrequest', function(a, b, c) { //b and c are undefined });jlbooker commentedon Nov 30, 2016
@jisotalo Which version of typeahead are you using? The latest release includes #65, which sounds related to this issue.
jisotalo commentedon Dec 1, 2016
I am using bundle file typeahead.js 1.0.1 that I downloaded from https://raw.githubusercontent.com/corejavascript/typeahead.js/master/dist/typeahead.bundle.min.js.