Closed
Description
Currently the twitter hashtag popover stays open even when the input is blurred. I've implemented a solid menu blur by:
- focusing the menu when the user starts navigating (will need set tabindex=-1 for this)
- adding blur handlers to the input and the menu
- in the handler determine if
document.activeElement
is the either the input, the menu, or a child of the menu - if not, close the menu
You can't do a typical "outerclick" because:
- that doesn't handle keyboard navigation (tab away from the input)
<select>
tags don't propogate events up to the body.
Metadata
Metadata
Assignees
Labels
No labels