Return Focus to the Trigger with Reach UI Dialog
Reach UI's Dialog traps focus inside a modal and returns it to the trigger element on close, but it requires its CSS bundle and a document.body portal.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Reach UI's Dialog traps focus inside a modal and returns it to the trigger element on close, but it requires its CSS bundle and a document.body portal.
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
Vaadin Dialog overlays are expected to be fully disposed after the dialog is closed, yet repeated open/close cycles can cause client‑side memory growth. The goal is to verify whether the overlay component retains a reference to the dialog after closure, which may lead to a memory leak in Chrome DevTools heap snapshots. Testing must be performed on a supporte
Goal Ensure that when a child Dialog is closed, focus returns to the element that opened the parent Dialog, satisfying WCAG 2.4.3. Current Behavior PrimeNG v18 captures the active element at Dialog open time. In nested scenarios, the captured element is the child Dialog’s trigger, not the parent’s trigger button. Closing the child leaves focus on the parent