Home > widget-integration > InstantSearchSelectors > hideThemeDialog

InstantSearchSelectors.hideThemeDialog() method

Hide theme search dialogs when ISW opens (full-width style).

**1:1 port of legacy hideThemeDialogWhenISWOpens().** Closes each open dialog and marks it with boostWasClosed so restoreThemeDialog() can identify which ones we closed.

Themes that lock page scroll from their dialog component (Horizon 2025+) get called first so their own unlockScroll() bookkeeping runs; the native close() still follows to remove the dialog from the browser top layer immediately (z-index conflict).

Signature:

hideThemeDialog(): boolean;

Returns:

boolean

True if at least one dialog was closed