Patch Changes
-
2b19978Thanks
@segunadebayo! - - Fixed issue where returning focus on deactivate could silently
steal focus back from an element the app legitimately focused in the meantime (e.g. opening a follow-up dialog right
after closing the current one, or a parent trap reclaiming its own initial focus after being unpaused).- Fixed issue where deactivating a nested trap (e.g. a popover inside a dialog) could throw an uncaught error if the
outer trap's container had no connected focusable element at that exact instant, even though the outer trap was
still fully active. - Pass
focusVisible: truewhen returning focus after a keyboard-driven deactivation (e.g.Escape), so the focus
ring reliably shows on the returned-to element. - Added a
persistentElementsoption so portalled content that isn't discoverable viaaria-controls/aria-expanded
can be declared as part of the trap, matching the option of the same name in@zag-js/dismissable.
- Fixed issue where deactivating a nested trap (e.g. a popover inside a dialog) could throw an uncaught error if the
-
Updated dependencies [
0d23ef3,
4e06700,
53944e0]:- @zag-js/dom-query@1.43.0