-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typeahead render event #1444
Comments
i just noticed this, too. perhaps it has been solved already. see #1206, #1207. for now if you want the suggestions you can do: x.bind('typeahead:render',
function (ev) {
var suggestions = Array.prototype.slice.call(arguments, 1);
}
); the async and datasets arguments appear to be completely missing. |
I met the same problem. Is it a bug ? |
A fix for this is now merged over in corejavascript/typeahead.js#65 |
Since this repo seems not being maintained. I've switched to the forked corejavascript/typeahead.js repo, which contains the fix. |
I am trying to use the typeahead render event, but can't get the arguments passed in correctly.
The render event files when expected, but it's not passing the arguments correctly.
event variable is the jQuery event object as specified.. But, I'd expect the second argument, items variable to be an array containing the current suggestions, but it only contains the first suggestion.. The next two arguments contain the 2nd and 3rd suggestions, and not the async flag, and dataset name as expected.
The text was updated successfully, but these errors were encountered: