LWT JavaScript API
    Preparing search index...
    • Trap focus within the given element.

      Sets inert on all sibling elements of the element's top-level ancestor (to prevent tabbing outside), stores the previously focused element, and moves focus to the first focusable child.

      Parameters

      • element: HTMLElement

        The container to trap focus within

      Returns void