Comments (6)
Even if it's a number, didn't work for me @renatosistemasvc
from v-money.
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.
Here's a reproduction https://stackblitz.com/edit/js-ueo8am?file=index.js
from v-money.
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.
@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.
@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)
- campo de preço sem a opção do usuário colocar os centavos HOT 1
- I'm new here: How to install? HOT 2
- Not working with big Integer HOT 2
- How to associate with a label? HOT 1
- v-money deprecated? HOT 4
- Having numbers in suffix property it gives me an infinite loop HOT 2
- toFixed(x) for non-masked values HOT 1
- Update values of child component with v-money HOT 2
- Support for Vue3 (with v-money3) HOT 1
- Error on null value and do not return Empty String HOT 2
- How to override global options
- how to format value only for display?
- Is it possible to change the direction of the inputs from rtl to ltr?
- Decimal and thousands separator through props
- Zeros being deleted unnecessarily HOT 1
- How to apply v-money to dynamically generated inputs HOT 1
- Display decimal depois da Virgula HOT 2
- How to disabled negative number? HOT 2
- always keep the cents empty HOT 1
- support amounts with no decimal? 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 v-money.