github chakra-ui/zag @zag-js/dom-query@2.0.0-next.2

Patch Changes

  • 2668edc Thanks
    @segunadebayo! - Add getCaretPosition, which measures the caret position in an
    input or textarea, returning { left, top, height } relative to the element's bounding client rect. Useful for
    anchoring a popup (e.g. a mention menu) to the caret.

  • #3252
    06ddeb3 Thanks
    @github-actions! - - Fixed issue where initialFocusEl rejected null,
    despite it being handled at runtime. On dialog and drawer it was listed as a prop with a default, which stripped
    null | undefined from its public type.

    • Fixed issue where Portal's container rejected the RefObject<T | null> that React 19's useRef<T>(null)
      returns.
  • #3304
    2859ef6 Thanks
    @segunadebayo! - Forward arguments from the cleanup whenNode returns to the
    cleanup fn returned, so callers can pass teardown intent through. Existing calls are unchanged.

  • Updated dependencies [6d57458,
    e8b99d2]:

    • @zag-js/types@2.0.0-next.2

Don't miss a new zag release

NewReleases is sending notifications on new releases.