jonathanpmartins / v-money3

Vue3 currency input/directive mask
MIT License
103 stars 27 forks source link

[solved] Infinite Loop when using numbers in prefix and/or suffix. #3

Closed jonathanpmartins closed 3 years ago

jonathanpmartins commented 3 years ago

This issue was first open by @diogopublio (https://github.com/vuejs-tips/v-money/issues/106) and @juanbrujo (https://github.com/vuejs-tips/v-money/issues/69) on the old v-money repository.

Example causing the problem:

decimal_mask: {
    decimal: ',',
    thousands: '.',
    prefix: '',
    suffix: ' m2',
    precision: 0,
    masked: false /* doesn't work with directive */
}