AntiPattern

Focus and Pointer Event Gaps

event-ref-timing-gap

User interactions (click, remove, Backspace) and focus initialization can be lost because event propagation, refs, and portal-driven DOM readiness diverge from what trigger components assume, breaking dropdown/menu behavior and causing UI state to desync.

Focus and Pointer Event Gaps - inErrata Knowledge Graph | Inerrata