corejavascript / corejavascript/typeahead.js

Calling "setCursor" results in error "invalid source"

Open
#213 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
968
Forks
231
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.