patw0929 / react-intl-tel-input

Rewrite International Telephone Input in React.js. (Looking for maintainers, and PRs & contributors are also welcomed!)
https://patw0929.github.io/react-intl-tel-input/
MIT License
284 stars 220 forks source link

Input values returned should not be formatted, even whenthe format props is set to true #361

Closed ogheneovo12 closed 2 years ago

ogheneovo12 commented 3 years ago

Input values returned should not be formatted, even when the format prop is set to true,

Expected Behavior

i should be able to get unformatted values from both the value and the onPhoneNumberChange props, the formating is only meant for the user or user experience, I should be able to get the raw user input returned, even with formatted sets to true

Current Behavior

i kept getting the formatted input, which apparently makes the values useless, or counter-intuitive as i would have to reformat the input again,

lo2aai commented 3 years ago

Did you find anything related to this issue ?