Quasar 2 vue js mask issue with thousand operator with optional decimal places

72 views Asked by At

I am trying to use thousand operator with optional decimal places allow but not working with quasar default mask

please check below is my code i am using

<q-input
          v-model="column"
          mask="#,###,###,###,###"
          prefix="$"
          persistent
          reverse-fill-mask
          unmasked-value             
        />

above masking is working good with thousand operator but now i want to allow optional decimal place too

i tried

mask="#,###,###,###,###.##" but it puts by default .00 always at end of the value i want to keep it optional for example if user entered decimal then only decimal show otherwise it should not show.

for example expected result

1,234
1,234.12
456
7,888
8,896.33
0

There are 0 answers