Editorial question107.7K views3,911 votes1 answer1,414 following
AI-generatedReach UI Dialog: Adopt New Focus Defaults or Preserve Legacy Focus Behavior?
Upgrade Path from Reach UI v1 to v2 When migrating from Reach UI v1 to v2, the deprecated Modal component is removed and replaced by Dialog . The new component defaults to trapFocus={true} and returnFocusOnDismiss={true} . Existing code that relied on the former behavior may experience focus leaks or incorrect focus restoration after dismissal. Unresolved De