corejavascript/typeahead.js

Calling "setCursor" results in error "invalid source"

Opened this issue · 0 comments

I am trying to programatically set the cursor, but if I am calling below method, I get an error Invalid source. As far as I can tell, I am using the API correctly:

input.typeahead('setCursor', $('.tt-dataset .tt-suggestion:first'))

How can I use the function correctly?