Skip to content

@zag-js/core@1.44.0

Choose a tag to compare

@github-actions github-actions released this 13 Sep 19:22
3092324

Patch Changes

  • 06be915 Thanks
    @segunadebayo! - Fix api.setOpen ignoring a second call made in the same tick.
    setOpen(true) immediately followed by setOpen(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 setOpen repeatedly with the same value still invokes onOpenChange
    once. Drawer's api.setSnapPoint had the same problem and behaves the same way now.

  • Updated dependencies [2668edc,
    de9aeaa]:

    • @zag-js/dom-query@1.44.0
    • @zag-js/utils@1.44.0