viclafouch / mui-tel-input

📌 A phone number input designed for MUI (Material ui) V6 built with libphonenumber-js
https://viclafouch.github.io/mui-tel-input
MIT License
158 stars 65 forks source link

Feature Request: Extension Support #119

Open leachtucker opened 7 months ago

leachtucker commented 7 months ago

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

viclafouch commented 7 months ago

What do you mean ?

leachtucker commented 7 months ago

@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.

viclafouch commented 7 months ago

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 ;)

leachtucker commented 7 months ago

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

leachtucker commented 7 months ago

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

leachtucker commented 7 months ago

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