Home > mui-country-code-selector > CCSelectorState > handleCountryCodeChange
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
A handler function for the CountryCodeSelector
's change events. See https://mui.com/material-ui/api/autocomplete/#autocomplete-prop-onChange for more information about the function parameters.
Parameters:
e
- The event source of the callback.
value
- The new value of the component.
reason
- One of “createOption”, “selectOption”, “removeOption”, “blur” or “clear”.
Signature:
handleCountryCodeChange: (_event: unknown, value: CountryType | null, reason: AutocompleteChangeReason, details?: AutocompleteChangeDetails<CountryType> | undefined) => void;