Home > mui-country-code-selector > CCSelectorState > setChangeHandler
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.
Sets a change handler function that is run with the current phone number value every time the value changes. This is used e.g., in the composite selector components (CountryCodeSelectorCompositeZustand
and CountryCodeSelectorCompositeReact
) to update the value prop when the component is used as a controlled component.
Signature:
setChangeHandler: (handler: ((event: {
target: {
value: string;
};
}) => void) | undefined) => void;