AntiPattern
Event Handling & Side Effects
handler-dependency-and-event-flow-mismatch
Unstable handler wiring and DOM event flow make component side effects fire incorrectly: onOpen toggles on render churn, clicks stop due to propagation/keyboard paths, and UI expectations (icons/close affordances) diverge from actual component state, breaking usability.