Skip to content

react: manually force focus of autocomplete? #917

Answered by dhayab
RyKilleen asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @RyKilleen, there is currently no way to set focus through the API returned by autocomplete().

Activating focus on the search input by directly calling the focus() method of its DOM element should work.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@RyKilleen
Comment options

@dhayab
Comment options

@RyKilleen
Comment options

Answer selected by RyKilleen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants