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

CountryOrder is not honoured after search terms removed. #1644

Closed
NickSutton opened this issue Jun 4, 2024 · 1 comment
Closed

CountryOrder is not honoured after search terms removed. #1644

NickSutton opened this issue Jun 4, 2024 · 1 comment

Comments

@NickSutton
Copy link

NickSutton commented Jun 4, 2024

Plugin version

v23.0.10

Steps to reproduce

  1. Search for a country by typing it's name
  2. Delete the search term.

Expected behaviour

I would expect countries listed in the countryOrder option to be first in the list.

Actual behaviour

The country list is in alphabetical order.

Initialisation options

separateDialCode: true,
strictMode: true,
initialCountry: 'ca',
countryOrder: ['ca'],
nationalMode: true,
utilsScript: "assets/InternationalTel_dev/build/js/utils.js",

I appear to be hitting this on initialisation;

TypeError: e[a] is not a function
    at intlTelInput.min.js:16:10141
    at Array.forEach (<anonymous>)
    at f (intlTelInput.min.js:16:10126)
    at intlTelInput.min.js:16:28769
@NickSutton
Copy link
Author

Hadn't updated the import method for utils script.... Doh.

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

1 participant