Replies: 2 comments 2 replies
-
Hi, I'm not sure if you still need this, but following your code I fixed it by changing the preProcess function to this: These are my complete options:
|
Beta Was this translation helpful? Give feedback.
2 replies
-
I do something like this https://stackblitz.com/edit/nuxt-starter-iyzrab?file=app.vue <template>
<input
type="text"
id="renda"
name="Renda"
placeholder="Renda bruta"
aria-placeholder="Renda bruta"
v-maska:[options]
data-maska-tokens="9:[0-9]:repeated"
data-maska="9.99#,##"
/>
</template>
<script setup>
const options = {
reversed: true,
preProcess: (val) => val.replace('R$ ', ''),
postProcess: (val) => val ? `R$ ${val}` : '',
};
</script>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
I can't format values above 4 decimal places using the BRL currency (pt-BR)
Ex.: R$ 45.660,00 - is not possible
Steps to reproduce
Below is a code example
Reproduction link
Link to online sandbox with reproduction code: Nuxt
Beta Was this translation helpful? Give feedback.
All reactions