Home > widget-integration > InstantSearchSelectors > closeThemeScrollLockDetails

InstantSearchSelectors.closeThemeScrollLockDetails() method

Close theme search panels built as <details scroll-lock> instead of a dialog.

Horizon locks scroll for these from a document-level toggle listener, so flipping open to false runs the theme's own unlockScroll() — no attribute surgery needed. Only panels that actually contain a search input are touched, so menu and cart drawers are left alone.

Signature:

closeThemeScrollLockDetails(): boolean;

Returns:

boolean

True if at least one panel was closed