v-money
v-money copied to clipboard
Having numbers in suffix property it gives me an infinite loop
When having numbers in suffix property it gives me an infinite loop. Is there a way to escape it ?
<input
v-money="max_size !== null ? decimal_mask : null"
>
decimal_mask: {
decimal: ',',
thousands: '.',
prefix: '',
suffix: ' m2',
precision: 0,
masked: false /* doesn't work with directive */
},
I get:
[Vue warn]: You may have an infinite update loop in a component render function.
I had this problem, you can use V-Money-Spinner (disabling the "Spinner" if you don't need it) this can work with "m2" in the suffix, always and when you have a non-numeric character before any number in the suffix, this will work, in the same way in the prefix you need a non-numeric character at the last "01-"
@diogopublio Your problem was solved in v-money3. Unfortunately it is only compatible with vue3.