mui-tel-input icon indicating copy to clipboard operation
mui-tel-input copied to clipboard

Feature Request: Extension Support

Open leachtucker opened this issue 1 year ago • 6 comments

From what I can tell, there is no support for extensions. Is that correct?

leachtucker avatar Jan 22 '24 22:01 leachtucker

What do you mean ?

viclafouch avatar Jan 22 '24 23:01 viclafouch

@viclafouch Apologies for being vague. I am speaking of phone numbers with extensions (e.g 770-123-1234, extension 111). I've seen one mention of extension in the docs, but during my playing-around I never seem to be able to enter them.

leachtucker avatar Jan 22 '24 23:01 leachtucker

Maybe check with the internal library I use for mui-tel-input.

https://www.npmjs.com/package/libphonenumber-js :

Maybe there is a way to get the country by using a method checking the extension ;)

viclafouch avatar Jan 23 '24 09:01 viclafouch

Nice. Will start digging in around over the next couple of weeks. :)

leachtucker avatar Jan 24 '24 17:01 leachtucker

Will put up a PR for this the next couple days!. Just adding some more test cases

leachtucker avatar Jan 29 '24 16:01 leachtucker

Hey, @viclafouch. I just threw up a draft PR to get some deliberation going on where this feature is headed.

leachtucker avatar Feb 02 '24 04:02 leachtucker