Comments (12)
How can I disable formatting in 4.3.0? How I can have the hyphens, spaces and brackets not added by default?
from vue-tel-input.
+1
from vue-tel-input.
Or at least on the "onInput" send the raw value?
from vue-tel-input.
Maybe the way I did it is not the right one, what do you think if your method returns an object like that:
{ 'full_phone': "+xx xx xxxx xxx" 'phone': "xx xxx xxx" 'country': "+xx" 'country_code': "AU" }
What do you think? It's easier to keep the backward compatibility?
Cheers,
from vue-tel-input.
@sirsquall, Thanks for your support. I'm taking a look into your PR and I'm concerned about the backward compatibility as well.
Adding the raw input from the user to the onInput
event might be a good solution.
from vue-tel-input.
Thank you very much Steven
from vue-tel-input.
v2.0.16
is up with supporting for disabledFormatting
prop. it's supposed to work as you wish and you still be able to achieve the 'formatted number' by formattedNumber
returned from onInput
event.
from vue-tel-input.
Everything is working well, thank you very much, for your time and reactivity!
from vue-tel-input.
Interestingly I was hoping to get formatting when you all are discussing how to disable. How come I don't see formatting visible to users with default config?
from vue-tel-input.
I see why. I set max-len to be 10 (for US). Wondering how I can have both..
from vue-tel-input.
Setting it to 13 works 🥴
from vue-tel-input.
Hello Jasper,
I was interested in storing the number in a database, this is why I was looking to disable the formatting. But I kept the formatting for the frontend 👍
Thanks
from vue-tel-input.
Related Issues (20)
- @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
- After entering more than 10 numbers on a US phone number, the component breaks and will not allow further editing of a number HOT 4
- The website in npm website is not working HOT 1
- Documentation website returns 404 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.