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

fix: correct input value concatenation on country change with disableā€¦ #112

Closed jiangdonghan closed 6 months ago

jiangdonghan commented 9 months ago

Fix for Issue #107: Incorrect Input Value on Country Change with disableFormatting

Hi Viclafouch, I've made an attempt to fix Issue #107 as i have also encountered this issue, where a bug was identified in the MuiTelInput component while using the disableFormatting prop. This issue caused the input value to incorrectly concatenate the calling codes upon changing the country.

Any thoughts you might want to run would be super helpful. I'm totally open to working together and tweaking things as needed to make sure this fix fits right in with the project. Also i will take a look for issue #106