Git Product home page Git Product logo

Comments (16)

solojazz avatar solojazz commented on July 25, 2024 3

Seems to only happen when v-model is set. A workaround might be setting :value="form" instead, then with v-on:input listen for changes and update your model that way. Feels a bit hacky though

from vue-the-mask.

Darkzarich avatar Darkzarich commented on July 25, 2024 1

I tried numerous other solutions for masks and there is almost nothing that solved the problem with the caret. The problem lies in how inputs work: if you change the value of an input programmatically it will move the caret to the end of the line, that's just how it works, v-model changes value programmatically hence why you can see the effect. As a scuffed solution you could do something like "fire on length" thing for your inputs and extend v-mask directive to operate the caret for you as in saving previous position etc.

from vue-the-mask.

Rytiggy avatar Rytiggy commented on July 25, 2024

Have you made any progress on this, I am experiencing a similar issue.
+1

from vue-the-mask.

KuzminDmitry avatar KuzminDmitry commented on July 25, 2024

Hi, got same problem with it

from vue-the-mask.

MaxKorolkov avatar MaxKorolkov commented on July 25, 2024

I've got this, it's terrible problem for user experience

from vue-the-mask.

ktquez avatar ktquez commented on July 25, 2024

Any solution?

from vue-the-mask.

webdeveloper0429 avatar webdeveloper0429 commented on July 25, 2024

same issue...
when I delete any letter on middle, the cursor goes to end

from vue-the-mask.

brnpimentel avatar brnpimentel commented on July 25, 2024

same here. Any solutions?

from vue-the-mask.

clemsontiger avatar clemsontiger commented on July 25, 2024

@solojazz is right, only happens when v-model is set, which I'd imagine is how many users wish to it. And agree, such a work around is hacky.

I'm honestly surprise this has not been fixed yet. Originally reported 2 years ago.

from vue-the-mask.

tjbortz1s avatar tjbortz1s commented on July 25, 2024

I'm getting the same or a similar issue on firefox. I believe it has something to do with the way vue re-renders controls?

from vue-the-mask.

singleparadox avatar singleparadox commented on July 25, 2024

Please fix :(

from vue-the-mask.

antonmih avatar antonmih commented on July 25, 2024

Help pls(

from vue-the-mask.

NikitaLem avatar NikitaLem commented on July 25, 2024

+1 same error. Still waiting for fix.

from vue-the-mask.

ngaisteve1 avatar ngaisteve1 commented on July 25, 2024

Any good workaround?

from vue-the-mask.

CodingMinds avatar CodingMinds commented on July 25, 2024

+1 Also waiting for a fix

from vue-the-mask.

ensgenc avatar ensgenc commented on July 25, 2024

I found the solution when I tried this package but I still keep testing it.

https://github.com/beholdr/maska

from vue-the-mask.

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.