Skip to content

SuggestionContainer.useSelectedItem method

SuggestionContainer › useSelectedItem

Unofficial

Use currently selected suggestion as the accepted one.

Signature:

useSelectedItem(event: Event): boolean

Parameters:

Parameter Type Description
event Event The triggering event.

Returns: booleanWhether a suggestion was accepted.