Home > widget-integration > InstantSearchController > handleInputFocus
InstantSearchController.handleInputFocus() method
Handle input focus event.
Respects data-disable-open-on-empty: when this attribute is present on the input element, focusing an empty search box will not open the suggestion panel. The panel still opens normally once the user starts typing.
Signature:
handleInputFocus(event: Event, input: HTMLInputElement): Promise<void>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
event |
Event |
Focus event |
|
input |
HTMLInputElement |
Input element |
Returns:
Promise<void>