material-ui-phone-number
material-ui-phone-number copied to clipboard
how to get a country code and mobile number separately
with autoFormat true, phone number is displayed differently for different country codes. For e.g.
- India: +91 29900-29909,
- US: +1 (929) 030-9390
- HongKong: +852 9399 3903
Is there any way to get country code and mobile number separately?
use onChange=(e,value)=>{handleChange(e,value}. In Value parameter you get separate dialcode key and there selected value
value is giving only : countryCode: "in" dialCode: "91" name: "India"
It is not giving mobile number separately. How to get that?