Demo-Page Repository

Home > mui-country-code-selector > CCSelectorState > handlePhoneNumberChange

CCSelectorState.handlePhoneNumberChange property

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 phone number input’s change events. Takes care of detecting the country code from the input and setting the countryCodeDigits and the countryCodeVal based on that.

Parameters:

event - The change event object from the phone number input.

Signature:

handlePhoneNumberChange: (event: { target: { value: string; }; }) => void;