Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Cannot read property 'charAt' of undefined' #124

Closed
lukaVarga opened this issue Aug 13, 2019 · 2 comments
Closed

'Cannot read property 'charAt' of undefined' #124

lukaVarga opened this issue Aug 13, 2019 · 2 comments

Comments

@lukaVarga
Copy link

After updating to v3.1.1 (from v2.1.5), I am getting the following error whenever I try to select a different country in the dropdown than the default one:

TypeError: Cannot read property 'charAt' of undefined
    at new Y (vendors.app.js:42908)
    at Y (vendors.app.js:42908)
    at VueComponent.choose (vendors.app.js:43404)
    at click (vendors.app.js:43730)

This happens only if I specify:
:input-options="{ showDialCode: true }" -> if the showDialCode is false, there is no error

It's happening within the choose method, when calling PhoneNumber(this.phoneObject.number.national, this.activeCountry.iso2).getNumber('international')

@iamstevendao
Copy link
Owner

Thanks for the report @lukaVarga. It's fixed in v3.1.2.

@lukaVarga
Copy link
Author

@iamstevendao cheers, thanks for a quick response and a quick fix :) I can confirm it's working :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants