-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paste not working correctly #93
Comments
This is the expected behavior with arbitrary precision. You need to pass a string like this: "1000.00". I think what you need is to use the number modifier. From the docs: Arbitrary PrecisionIn this release, some breaking changes have been introduced. Let's delve into the details:
For most users, it's advisable to utilize floating-point numbers and adhere to the boundaries of You are using the directive applied to a native html component. Will something like this help you? <input
:model-modifiers="{ number: true }"
v-model.lazy="amount"
v-money3="config"
/>
|
Hey @jonathanpmartins thanks for the answer. Unfortunately what I need is changing the "expected" behavior. For me doesn't make sense to paste 1000 (that is an integer) and display 10.00. In my head if I paste 1000 should display 1000.00 Thanks again for the clarification! |
Isn't this the default behavior with the number modifier set to |
If you set decimals to 2 and paste 1000 value, will be converted to 10.00 and not 1000.00.
How can I fix this? I'd like to paste 1000 and show 1000.00
I'm using the component below:
The text was updated successfully, but these errors were encountered: