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