github chakra-ui/zag @zag-js/dom-query@1.44.0

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.

  • de9aeaa Thanks
    @segunadebayo! - Fix popups dismissing themselves right after opening when their
    content is kept mounted while closed and re-parented on open. The layer captured the element that was about to be
    detached, so interactions inside the live content counted as outside clicks.

    defer: true now always waits for the framework to commit, instead of resolving synchronously when an element happens
    to already be there.

  • Updated dependencies []:

    • @zag-js/types@1.44.0

Don't miss a new zag release

NewReleases is sending notifications on new releases.