Releases: recursive-beast/mui-phone-textfield
Releases · recursive-beast/mui-phone-textfield
v1.0.1
v1.0.0
1.0.0 (2020-12-22)
Features
- props:
value
,error
andcountry
can now be passed to the component (3081b42) - props: country is now optional (28ba593)
BREAKING CHANGES
-
props: the user is now responsible for controlling the input.
-
onChange
receives the original input change event but with the additional properties
currentTarget.formattedValue
, andphoneNumber
if a valid phone number
is extracted from the input's value. -
onCountrySelect
receives a data object with the properties:country
: the selected country.formattedValue
: the formatted value for the selected country.phoneNumber
: a PhoneNumber instance if a valid phone number was
extracted from the input's value.
-