Skip to content

@zag-js/menu@1.44.0

Choose a tag to compare

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

Patch Changes

  • 82692cd Thanks
    @segunadebayo! - Select the clicked item when invoking onSelect, instead of only
    reading highlightedValue.

  • 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,
    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/utils@1.44.0
    • @zag-js/rect-utils@1.44.0