Patch Changes
-
06be915Thanks
@segunadebayo! - Fixapi.setOpenignoring a second call made in the same tick.
setOpen(true)immediately followed bysetOpen(false)left the component open instead of closed, and only worked if
you awaited a microtask between the two calls.The last call in a tick now wins, and calling
setOpenrepeatedly with the same value still invokesonOpenChange
once. Drawer'sapi.setSnapPointhad the same problem and behaves the same way now. -
Updated dependencies [
2668edc,
de9aeaa,
82692cd,
06be915]:- @zag-js/dom-query@1.44.0
- @zag-js/dismissable@1.44.0
- @zag-js/focus-visible@1.44.0
- @zag-js/core@1.44.0
- @zag-js/popper@1.44.0
- @zag-js/anatomy@1.44.0
- @zag-js/types@1.44.0
- @zag-js/collection@1.44.0
- @zag-js/utils@1.44.0