Patch Changes
-
#3252
021c599Thanks
@github-actions! - Fix removed dismissable layers retaining stack data
attributes and CSS variables when their elements remain mounted. This clearsdata-nested,data-has-nested,
--layer-index,--nested-layer-count, and the derived--z-indexafter removal, including when a layer has nested
children. -
#3304
2859ef6Thanks
@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
getNestedLayerstreating every layer as nested inside an unregistered node. - Cascade dismissal now runs shallowest first.
Add a
reattachoption toremove. It keeps the layer's identity and position for the nextaddand leaves its
descendants open, so a layer can be reconfigured without dismissing what is inside it.Allow
pointerBlockingto be a getter, matchingexcludeandpersistentElements. Call the newsyncPointerEvents
after its value changes. - Fixed
-
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