Skip to content

NULL Value return on area code #511

@AllProAi

Description

@AllProAi

Looking at this error stack trace, the vue3-tel-input library when the third digit of a phone number is 0. The errors show that the library is trying to call string methods (toUpperCase, toLowerCase) and DOM methods (setCustomValidity) on null values.
Here are the specific issues.

Root Cause

When the third digit is 0, the country detection logic in vue3-tel-input fails to find a matching country and returns null. The code then tries to call methods on these null values, causing the crashes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions