Home > widget-integration > InstantSearchController > moveISWBackToBody
InstantSearchController.moveISWBackToBody() method
Move the ISW element back to document.body after a dialog closes.
Restores dialog dimensions and resets wrapper position styles so that subsequent dropdown-style positioning calculations start from a clean state.
Signature:
protected moveISWBackToBody(dialog: HTMLElement): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
dialog |
HTMLElement |
The dialog element that was hosting ISW |
Returns:
void