-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
How to use autoFormat? #367
Comments
So it sounds like you're trying to use |
Ah! OK, so I tried all the options. It seems passing in the country code doesn't matter... but you have to specify intl/ntl or it won't do anything.
Is there a way to check if the user is currently in national mode or international mode? I can't find it in the docs. I'd like to try to autoFormat, but not to suddenly show or hide the country code on them. |
Ah actually you raise a good point - if you just use If you want to know if the user has entered a national or international number, you could just check if the input value starts with a plus. Does that all make sense? |
Well, that cleaned things up a bit.
|
I tried calling it, but it didn't work:
Uncaught TypeError: intlTelInputUtils is not a function
... even though I loaded it:
,utilsScript: "bower_components/intl-tel-input/build/js/utils.js"
and it works to verify if the number is valid, and I see in network in indeed loaded.So, I can't reference it. I blew away the bower_components/intl-tel-input and reinstalled
"intl-tel-input": "~8.0.0",
==>"version": "8.0.1",
but it still doesn't work.I'll ask more about how to use it once I can actually call it (it requires multiple arguments?). Ideas?
The text was updated successfully, but these errors were encountered: