Home > widget-integration > PredictiveBundleController > restoreFocus
PredictiveBundleController.restoreFocus() method
Restores keyboard focus after a bundle rerender.
Signature:
restoreFocus(wrapper: HTMLElement | null, key: PredictiveBundleFocusRestoreKey): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
wrapper |
HTMLElement | null |
Preferred wrapper to search first. |
|
key |
Focus target slot to restore. |
Returns:
void