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.
inert
The container to trap focus within
Trap focus within the given element.
Sets
inerton 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.