Giter Club home page Giter Club logo

Comments (6)

bgoncal avatar bgoncal commented on August 17, 2024 1

Even if it's a number, didn't work for me @renatosistemasvc

from v-money.

renatosistemasvc avatar renatosistemasvc commented on August 17, 2024

The problem happens when the data is of the type string. The library works correctly when the data is of type number.

It would be good to work in both situations.

from v-money.

eternalcode0 avatar eternalcode0 commented on August 17, 2024

Here's a reproduction https://stackblitz.com/edit/js-ueo8am?file=index.js

from v-money.

renatosistemasvc avatar renatosistemasvc commented on August 17, 2024

I'm using the component:

<money v-model="price" v-bind="money"></money>

Instead of:

<input v-model.lazy="price" v-money="money" />

from v-money.

eternalcode0 avatar eternalcode0 commented on August 17, 2024

@renatosistemasvc So are the directive and and the component supposed to function differently? Either way, it seems the issue isn't with the component but rather with the directive.

from v-money.

renatosistemasvc avatar renatosistemasvc commented on August 17, 2024

@eternalcode0 Yes! There is a bug in the directive.
But if you use the direct component, the problem is solved.
The component also uses the directive internally. But for some reason, using the component directly makes the problem go away.

I'm using it in my projects and it's working fine.
I downloaded the src folder from this repository and adapted the library to work with null values and with vue element.

everything works fine!

from v-money.

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.