If I use AsYouType like so: const formattedNum = new AsYouType('US').input('1234567890), it looks like it is viewing the first '1' to be the country code. So, it formats it like '1 (234) 567-890' when I am expecting it to be '(123) 456-7890'. Is there something I am missing where we can specify that we only want the national format?
If I use AsYouType like so:
const formattedNum = new AsYouType('US').input('1234567890)
, it looks like it is viewing the first '1' to be the country code. So, it formats it like '1 (234) 567-890' when I am expecting it to be '(123) 456-7890'. Is there something I am missing where we can specify that we only want the national format?