vue-inputmask icon indicating copy to clipboard operation
vue-inputmask copied to clipboard

How Can I return the unmasked value?

Open jamescoffman23 opened this issue 6 years ago • 2 comments

Is there a way to return the unmasked value to the v-model?

jamescoffman23 avatar Aug 24 '18 20:08 jamescoffman23

you can access unmasked value from change event e.target.inputmask.unmaskedvalue()

lokilok1993 avatar Feb 05 '19 08:02 lokilok1993

Also, if you just want the raw value in the v-model, you can specify: autoUnmask: true.

It is not clear in these docs but this wrapper seems to support many/most/all the features in the Robin Herbots component it is based on. The link is on the main page.

tspratt avatar Dec 09 '19 21:12 tspratt