Skip to content

clicking outside combobox keeps focus on input, how can i get it to blur #3557

Answered by snowystinger
badtant asked this question in Q&A
Discussion options

You must be logged in to vote

UPDATE: See last few comments in this thread for the answer

Just click a second time to blur it. This is how native controls work too. See Select https://codesandbox.io/s/solitary-microservice-7p2vvv the first click will close it and the second will blur the control.

As for restoring, in a combobox, technically focus never left the input. It's virtually moving focus around in the popover. To verify this, try typing something in the input, then move up or down the menu in the popover using arrow keys. Note that the cursor remains in the input the entire time.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@badtant
Comment options

@snowystinger
Comment options

@badtant
Comment options

@snowystinger
Comment options

@badtant
Comment options

Answer selected by snowystinger
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