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

Patch Changes

  • #3252
    021c599 Thanks
    @github-actions! - Fix removed dismissable layers retaining stack data
    attributes and CSS variables when their elements remain mounted. This clears data-nested, data-has-nested,
    --layer-index, --nested-layer-count, and the derived --z-index after removal, including when a layer has nested
    children.

  • #3304
    2859ef6 Thanks
    @segunadebayo! - Track layer nesting by an explicit parent instead of stack
    position, so a re-registered layer keeps its place and cannot claim unrelated layers as descendants.

    • Fixed getNestedLayers treating every layer as nested inside an unregistered node.
    • Cascade dismissal now runs shallowest first.

    Add a reattach option to remove. It keeps the layer's identity and position for the next add and leaves its
    descendants open, so a layer can be reconfigured without dismissing what is inside it.

    Allow pointerBlocking to be a getter, matching exclude and persistentElements. Call the new syncPointerEvents
    after its value changes.

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

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

Don't miss a new zag release

NewReleases is sending notifications on new releases.