winmarkltd / BootstrapFormHelpers

Bootstrap Form Helpers
https://bootstrapformhelpers.com
1.16k stars 374 forks source link

Changing phone formatting changes phone number #205

Open tonym opened 10 years ago

tonym commented 10 years ago

If a number is entered, say 462-555-1212, a US number, the display formats as +1 (462) 555-1212. If, when using a country selector, the country is then changed, such as to UK, the re-formatting includes the international prefix. The reformatted number then comes out as +44 (625) 5512 12

Notice how the entered number begins with a 4, and UK is +44. If the US number had begun with something other than 4, it would format correctly (i.e the result of the above experiment would be +44 (625) 5551 212)