Home > widget-integration > InstantSearchController > closeSuggestion

InstantSearchController.closeSuggestion() method

Close suggestion dropdown/overlay.

**Legacy**: closeSuggestion() / onCloseSuggestion() **New**: closeSuggestion(input?) with state management

Signature:

closeSuggestion(input?: HTMLInputElement): void;

Parameters

Parameter

Type

Description

input

HTMLInputElement

(Optional) Optional input element

Returns:

void