• Give focus to a given element.

    For convenience it will ignore null and undefined as element parameter.

    If in a Vue context, please refer to the focus method included in @fkui/vue.

    Parameters

    • element: undefined | null | Element

      Element to focus.

    • options: boolean | FocusOptions = {}

      Focus options. If you pass boolean true or false it sets the force option.

    Returns void