LouisMazel / vue-phone-number-input

A phone number input made with Vue JS (format & valid phone number)
https://louismazel.github.io/vue-phone-number-input
MIT License
606 stars 153 forks source link

(BUG) Country Code incorrectly shown for 4 digit codes #110

Open xcitic opened 4 years ago

xcitic commented 4 years ago

Describe the bug

When selecting a country that has a Country Code containing 4 digits then only +1 appears after selection. (Anguilla, Bahamas, British Virgin Islands etc.)

Steps to reproduce

  1. Go to https://louismazel.github.io/maz-ui/documentation/maz-phone-number-input/
  2. Select Bahamas in the Country Code select (country code +1242)
  3. When selected +1 appears in the Country Code box. This applies to all 4 digit country codes I have tried. The same results occur in our application using the plugin.

Expected behavior

Expect the correct country code to appear in the Country Code selector after selection.

Device

jpliukaitis commented 4 years ago

Yeah, noticed the same issue.