SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Function hasFocus

    • Checks if the given element or any of its children has focus.

      Parameters

      • elementSource: HTMLElement | SVGElement

        The element to check for focus.

      • ignoreDoc: boolean = false

        Whether to ignore the document's focus state.

      Returns boolean

      True if the element or its children have focus, false otherwise.