Skip to content

Focus after select not focusing #11

@Amerlander

Description

@Amerlander

When I do focusAfterSelect='true' the search results stay open after an selection, but the input doesn't get focus. I have to select it with the mouse to change the text in it.
The console error says TypeError: searchRef.focus is not a function.

I wasnt able to get the input focused, but the error message can be removed by changing

    if (focusAfterSelect) searchRef.focus();

    hideDropdown = true;

to

        if (!focusAfterSelect)   hideDropdown = true;

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions