Home > widget-integration > InstantSearchController > getFocusTrapElements
InstantSearchController.getFocusTrapElements() method
Collect all keyboard-focusable elements inside the full-width overlay.
Signature:
protected getFocusTrapElements(root?: HTMLElement | null): HTMLElement[];
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
root |
HTMLElement | null |
(Optional) Already-resolved trap root, to avoid re-querying the DOM |
Returns:
HTMLElement[]
Array of focusable elements in DOM order