Hiyve Components - v1.0.0
    Preparing search index...
    • Open the link under a click in a NEW TAB, safely.

      Parameters

      • event: MouseEvent

        The click event.

      • Optionalboundary: Element | null

        Optional element the lookup must stay within (the editor's root).

      Returns boolean

      Meant for a click handler inside an editable surface, where the browser does not follow anchors itself. The tab is opened with noopener,noreferrer, so the destination can never reach back into the page that opened it. Returns true when a link was opened — callers that plug this into an editor's click handling can use that to stop further processing. Only primary-button clicks on (or inside) an anchor with an absolute http/https/mailto/tel href count; anything else returns false and leaves the click alone.