Preparing search index...

    Function findAutocompleteAnchor

    • Finds the autocomplete wrapper enclosing a focused element.

      Parameters

      • element: ReadOnlyElement

        The element that received focus

      Returns ReadOnlyElement | null

      The closest element (itself included) whose id is AUTOCOMPLETE_ANCHOR_ID, or null when the element is not part of an autocomplete input