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

disableFormatting prop bugs typing in input value of +11 #106

Closed vparusheva closed 6 months ago

vparusheva commented 9 months ago

Version: mui-tel-input 4.0.1 Scenario:

  1. Open the code sandbox below https://codesandbox.io/s/mui-tel-input-forked-94wqzq
  2. Delete the default code (+33)
  3. Type in "1". "+1" is input. Try to type in another "1".
  4. You should see "+11". Instead, the second "1" is not added. This works fine if disableFormatting is not added. This works fine with other digits (e.g. +2222, +3333, +1234 etc)
viclafouch commented 6 months ago

Fixed ! Ty ;)