github chakra-ui/zag @zag-js/navigation-menu@2.0.0-next.4

Minor Changes

  • #3342
    d6089c3 Thanks
    @github-actions! - - Add data-activation-direction to the viewport and
    content, and api.activationDirection.

    • Fix a menu opened with defaultValue or an initial value not measuring its viewport or closing on Escape and
      outside click.

    • Fix focus not returning to the trigger on Escape when the content unmounts synchronously.

  • #3342
    4f28f36 Thanks
    @github-actions! - - Add reason to onValueChange details, such as
    trigger-click, keyboard, drag, item-select or script. Each component exports its ValueChangeReason type.
    Slider also adds it to onValueChangeEnd.

Patch Changes

  • #3342
    730ea29 Thanks
    @github-actions! - - Fix focus, scroll and sync work scheduled for the next
    frame running after the component unmounts.
  • Updated dependencies [a87b07c,
    cb8e73d,
    a80b307,
    4f28f36,
    08ea850]:
    • @zag-js/dismissable@2.0.0-next.4
    • @zag-js/dom-query@2.0.0-next.4
    • @zag-js/core@2.0.0-next.4
    • @zag-js/anatomy@2.0.0-next.4
    • @zag-js/types@2.0.0-next.4
    • @zag-js/utils@2.0.0-next.4

Don't miss a new zag release

NewReleases is sending notifications on new releases.