LouisMazel / vue-phone-number-input

A phone number input made with Vue JS (format & valid phone number)

Home Page:https://louismazel.github.io/vue-phone-number-input

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(BUG) Wrong invalid Phone Number

dianamoreno opened this issue · comments

Describe the bug

Hi, first all thanks for this amazing component. My issue is happening when I tested a valid phone number for Colombia Country local phone numbers, I am getting an "isValid equals to false" on the returned data in the payload but if I check the same phone number using the isValidPhoneNumber from 'libphonenumber-js', the library is responding with a Valid number.

Steps to reproduce

  1. Select Colombia Country and type the next valid phone number: 6076998899
  2. The payload is showing isValid equals to false

Expected behavior

"isValid equals to true" on the returned data in the payload

Screenshots

Bug with component:

image

Response using isValidPhoneNumber from 'libphonenumber-js'
image