Code Monkey home page Code Monkey logo

Comments (12)

adrianmann avatar adrianmann commented on July 28, 2024 2

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.

sirsquall avatar sirsquall commented on July 28, 2024

+1

from vue-tel-input.

sirsquall avatar sirsquall commented on July 28, 2024

Or at least on the "onInput" send the raw value?

from vue-tel-input.

sirsquall avatar sirsquall commented on July 28, 2024

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.

iamstevendao avatar iamstevendao commented on July 28, 2024

@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.

sirsquall avatar sirsquall commented on July 28, 2024

Thank you very much Steven

from vue-tel-input.

iamstevendao avatar iamstevendao commented on July 28, 2024

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.

sirsquall avatar sirsquall commented on July 28, 2024

Everything is working well, thank you very much, for your time and reactivity!

from vue-tel-input.

jasper-moment avatar jasper-moment commented on July 28, 2024

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.

jasper-moment avatar jasper-moment commented on July 28, 2024

I see why. I set max-len to be 10 (for US). Wondering how I can have both..

from vue-tel-input.

jasper-moment avatar jasper-moment commented on July 28, 2024

Setting it to 13 works 🥴

from vue-tel-input.

sirsquall avatar sirsquall commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.