-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
In Version 23.0.7 the intlTelInput.getCountryData() static function returns empty string value for name property. It was working fine till v20.3.0 #1628
Comments
Thanks for reporting. This should be fixed in v23.0.8. |
@jackocnr Thank you for resolving this issue. I had one follow-up question. import utils from 'intl-tel-input/build/js/utils.js'; But now since the v23.0.0 release utils script is an ECMA module, i tried below import utils from 'intl-tel-input/intlTelInputWithUtils'; And the code to instantiate remains the same as below. But validations are failing and i dont see any console errors. Am i importing Utils module in a wrong way? I also pointed directly to the new utils script as below In both the case below code for getNumber() in the intlTelInput.js file is returning ""(empty string).Due to this i implied that utils are not getting loaded. Please correct me if i am wrong. Thank you |
Sorry I haven't updated the docs properly yet, but if you want to use the intlTelInputWithUtils, then you do it like this:
And then you don't need to use EDIT: I've now added a section to the readme called Loading The Utilities Script |
Plugin version
v23.0.7
Steps to reproduce
Expected behaviour
It should return countryName in the name property like below
[{
name: "Afghanistan",
iso2: "af",
dialCode: "93"
}, ...]
Actual behaviour
PFB the code example
https://codedamn.com/playground/zd47K7toOOFlCGB6ZPkky
Current output from intlTelInput.getCountryData() method is as below
[{
name: "",
iso2: "af",
dialCode: "93"
}, ...]
Initialisation options
None
The text was updated successfully, but these errors were encountered: