Skip to content

AsyncRequest event missing argument ... when it should not be fired at all #68

Open
@yanickrochon

Description

@yanickrochon

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

element.data('ttTypeahead').input.setQuery(newValue, true);

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions