Skip to content

Getting the raw (unmasked) value from Maska? #113

Answered by beholdr
brandonleichty asked this question in Q&A
Discussion options

You must be logged in to vote

You could bind mask result to reactive variable which will contain masked and unmasked value.
Example from docs:

<script setup>
import { reactive } from "vue"
import { vMaska } from "maska"

const binded = reactive({})
</script>

<template>
  <input v-maska="binded">
  <p v-if="binded.completed">
    Masked value: {{ binded.masked }}
    Unmasked value: {{ binded.unmasked }}
  </p>
</template>

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@brandonleichty
Comment options

@beholdr
Comment options

Answer selected by brandonleichty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants