Skip to content

SuggestModal.onSelectedChange method

SuggestModal › onSelectedChange

Unofficial

Called after every selection change, including the programmatic one that follows SuggestModalChooser.setSuggestions.

Signature:

onSelectedChange(value: T, evt?: KeyboardEvent | MouseEvent | null | undefined): void

Parameters:

ParameterTypeDescription
valueTThe newly selected value.
evt?KeyboardEvent | MouseEvent | null | undefinedThe event that moved the selection, or null / omitted when it moved programmatically.

Returns: void