Skip to content

(BUG) Wrong invalid Phone Number #184

@dianamoreno

Description

@dianamoreno

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions