v-money icon indicating copy to clipboard operation
v-money copied to clipboard

Having numbers in suffix property it gives me an infinite loop

Open diogopublio opened this issue 3 years ago • 2 comments

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.

diogopublio avatar Oct 10 '20 17:10 diogopublio

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-"

joserick avatar Feb 13 '21 01:02 joserick

@diogopublio Your problem was solved in v-money3. Unfortunately it is only compatible with vue3.

jonathanpmartins avatar Apr 30 '21 04:04 jonathanpmartins