Skip to content

@zag-js/drawer@2.0.0-next.2

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 31 Aug 19:58
· 0 commits to main since this release
85a12d2

Patch Changes

  • #3252
    06ddeb3 Thanks
    @github-actions! - - Fixed issue where initialFocusEl rejected null,
    despite it being handled at runtime. On dialog and drawer it was listed as a prop with a default, which stripped
    null | undefined from its public type.

    • Fixed issue where Portal's container rejected the RefObject<T | null> that React 19's useRef<T>(null)
      returns.
  • #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,
    021c599,
    2859ef6,
    6d57458,
    734b5e8,
    e8b99d2,
    2859ef6,
    2859ef6,
    2859ef6]:

    • @zag-js/dom-query@2.0.0-next.2
    • @zag-js/focus-trap@2.0.0-next.2
    • @zag-js/dismissable@2.0.0-next.2
    • @zag-js/core@2.0.0-next.2
    • @zag-js/types@2.0.0-next.2
    • @zag-js/utils@2.0.0-next.2
    • @zag-js/aria-hidden@2.0.0-next.2
    • @zag-js/remove-scroll@2.0.0-next.2
    • @zag-js/anatomy@2.0.0-next.2