github chakra-ui/zag @zag-js/focus-trap@2.0.0-next.2

Patch Changes

  • #3304
    2859ef6 Thanks
    @segunadebayo! - Apply trapFocus, preventScroll and modal while the dialog or
    drawer is open, and modal while the popover is open. They were read once on entry, so the only way to change them
    was a remount, which is unusable for content that cannot be recreated such as media playback or a running timer.

    Releasing the focus trap no longer pulls focus back to the trigger. Focus is restored only when the component closes.
    trapFocus() forwards deactivate options to make this possible.

  • Updated dependencies [2668edc,
    06ddeb3,
    2859ef6]:

    • @zag-js/dom-query@2.0.0-next.2

Don't miss a new zag release

NewReleases is sending notifications on new releases.