You are viewing API docs for version 1.89.3.

View latest

Home > widget-integration > CartController > focusedElementBeforeMiniCart

CartController.focusedElementBeforeMiniCart property

Stores the element that had focus before mini cart was opened Used for WCAG-compliant focus restoration when mini cart closes

Signature:

focusedElementBeforeMiniCart: HTMLElement | null;