intl_phone_number_input icon indicating copy to clipboard operation
intl_phone_number_input copied to clipboard

Incorrect Phone Number Validation for Numbers Starting with +1310

Open firthowsa opened this issue 4 months ago • 0 comments

Describe the bug Users can only input a limited number of digits (4) after entering +1310, preventing them from entering longer, valid phone numbers.

Package version [0.7.4]

Flutter version Your current version of the Flutter SDK [3.22.0]

To Reproduce

  1. Open the phone number input field.
  2. Enter the country code +1 followed by 310.
  3. Attempt to input a phone number and observe the restriction to 4 digits.

Expected behavior The input field should accept the correct number of digits for phone numbers starting with +1310.

Screenshots If applicable, add screenshots to help explain your problem.

** Targeted platforms (please complete the following information):**

  • OS [e.g. Android, iOS, ...]
  • Web [✔ ]

Additional context We are using the intl_phone_number_input package in our Flutter project. This issue specifically affects phone numbers starting with +1310 but may also apply to other country codes. Correct validation is crucial to ensure a smooth user experience.

firthowsa avatar Oct 09 '24 13:10 firthowsa