Comments (3)
I assume you mean countryOrder: ['ca']
with the array brackets?
I tried it here: https://codepen.io/jackocnr/pen/xxNrjRM?editors=0010
And it seems to work fine. Can you reproduce the issue in a codepen? You can fork that one if it helps.
from intl-tel-input.
Hmmm, thanks.
I'm passing in the country code as a variable:
const countryCode = 'gb'
const iti = window.intlTelInput(input, {
showSelectedDialCode: true,
separateDialCode: true,
strictMode: true,
initialCountry: countryCode,
countryOrder: [countryCode],
nationalMode: true
// No utils scripts as I'm loading intlTelInputWithUtils.min.js
});
But have forked your codepen (https://codepen.io/TheMiddle361/pen/ZENyVLx), but can't reproduce the issue... Here's what I'm seeing:
Screen.Recording.2024-06-06.at.23.27.34.mov
from intl-tel-input.
Fixed. It was an issue with initialising the iti variable somewhere. changed to const newIti
and it's working the same as the Codepen now.
from intl-tel-input.
Related Issues (20)
- Error trying to load the utilsScript from node_modules HOT 6
- Jquery support? HOT 1
- Types not found for intlTelInputWithUtils HOT 7
- Lithuania phone number placeholder issues HOT 2
- Issue in Salesforce with dynamic import of utils.js HOT 9
- [React] Placeholder breaks upon calling `setNumber` HOT 3
- Adding Farsi (Persian) Translation HOT 1
- The country flag receives focus before the input when `allowDropdown` is `false` HOT 1
- getNumber() returns an empty string. HOT 6
- Import error when React is not installed HOT 1
- Error Building utils.js with libphonenumber v20.3.0: 'grunt' Command Not Recognized HOT 7
- Padding isn't removed from input when instance is destroyed HOT 2
- Everytime I input +xxx it converts back to 0 or removes +xxx numbers HOT 11
- Missing styles somehow HOT 6
- Country search box not working when initialized with "dropdownContainer" set to document.body in a Bootstrap modal HOT 2
- Invalid phone number issue for Ireland HOT 18
- Latest versions not available on jspm.io HOT 2
- As per Breaking Changes in SCSS move properties above nested rules HOT 2
- AutoInsertDialCode property missing HOT 2
- Hide search field HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intl-tel-input.