Skip to content
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

Having numbers in suffix property it gives me an infinite loop #106

Open
diogopublio opened this issue Oct 10, 2020 · 2 comments
Open

Having numbers in suffix property it gives me an infinite loop #106

diogopublio opened this issue Oct 10, 2020 · 2 comments

Comments

@diogopublio
Copy link

diogopublio commented Oct 10, 2020

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 diogopublio changed the title Having numbers in suffix property gives me infinite loop Having numbers in suffix property it gives me an infinite loop Oct 10, 2020
@joserick
Copy link

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

@jonathanpmartins
Copy link

jonathanpmartins commented Apr 30, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants