Comments (3)
Answer:
https://github.com/EducationLink/vue-tel-input/blob/master/src/vue-tel-input.vue
In this above link go to line no 338
You can add below code it will work fine.
choose(country) {
this.activeCountry = country;
this.phone='';
this.$emit('onInput', this.response);
},
from vue-tel-input.
@raphaelarias @iamstevendao This issue has been solved.
@muralivenkatesh Update the latest changes from repo.
Use this prop: :selectedCountryCode="true"
Now, After changing the country it's removing old values and country codes also changing.
from vue-tel-input.
Thank to @Revel109, this issue has been fixed in v2.0.20
with prop: inputOptions: { showDialCode: true }
.
from vue-tel-input.
Related Issues (20)
- Issue with Dynamic country code selector HOT 4
- Enhancement Request - Custom Location / IP API URL setting
- props inputOptions.placeholder not works HOT 1
- @input does _not_ emit 2 values
- component not rendering in production [Vue3 + Vite]
- How can i add country name in dropdown section
- Types are still connected to Vue 2 HOT 1
- Typed phone number is erased after one letter
- Search Box placeholder HOT 4
- Vue-tel-input veevalidate HOT 1
- Props for aria-label of Country code selector button
- Not able to set aria-invalid on the input-field
- TypeScript support non-existant
- Autoformat breaks with newer version (Maximum recursive updates exceeded in component) HOT 9
- Update all-countries.js [main & legacy branches] HOT 7
- @on-input -> @update:model-value
- Uncaught SyntaxError: Unexpected token {
- integrate vue-tel-input and vue-hook-form
- In monorepos the Vue instance is not correctly resolved HOT 2
- Error after tabbing to the dropdown field HOT 1
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 vue-tel-input.