github chakra-ui/zag @zag-js/preact@1.44.0

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 [06be915]:

    • @zag-js/core@1.44.0
    • @zag-js/store@1.44.0
    • @zag-js/types@1.44.0
    • @zag-js/utils@1.44.0

Don't miss a new zag release

NewReleases is sending notifications on new releases.