| 518 | }; |
| 519 | |
| 520 | let onBlur = e => { |
| 521 | // Don't set blurred and then focused again if moving focus within the collection. |
| 522 | if (!nodeContains(e.currentTarget, e.relatedTarget as HTMLElement)) { |
| 523 | manager.setFocused(false); |
| 524 | } |
| 525 | }; |
| 526 | |
| 527 | // Ref to track whether the first item in the collection should be automatically focused. Specifically used for autocomplete when user types |
| 528 | // to focus the first key AFTER the collection updates. |
nothing calls this directly
no test coverage detected