Home > widget-integration > InstantSearchSelectors > restoreThemeDialog

InstantSearchSelectors.restoreThemeDialog() method

Restore theme dialogs when ISW closes.

**1:1 port of legacy restoreThemeDialogWhenISWCloses().**

Note: In practice this is effectively a no-op for the full-width case. detectThemeDialogs() requires [open] in its selectors. After hideThemeDialog() calls dialog.close(), [open] is removed, so detectThemeDialogs() returns an empty array and the forEach never runs. The dialog stays closed until the user explicitly opens the theme search again.

For the dropdown/injection case where the dialog stayed open, the handleDialogIntegration observer closes it via moveISWBackToBody() when the theme itself fires the close event — not from here.

Signature:

restoreThemeDialog(): void;

Returns:

void