Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unmasked value not working #5

Open
joweste opened this issue May 14, 2020 · 0 comments
Open

Unmasked value not working #5

joweste opened this issue May 14, 2020 · 0 comments

Comments

@joweste
Copy link

joweste commented May 14, 2020

Hi, I am testing your component.
Initially, I have cliente.telres="2124104003" and the component show this value correctly with the mask.
Then,I put the cursor on end of the input and delete the number "3". Then v-text-field shows:
(21)2410-400, but the "cliente.telresUnmasked" continues showing "212414003".

Am I doing something wrong?

image

My code:

<v-col cols="12" md="4">
                  <v-text-field
                    label="Tel Fixo"
                    v-model="cliente.telres"
                    class="purple-input"
                    return-masked-value
                    v-mask="{
                      mask: '(##) ####-####',
                      unmaskedVar: 'cliente.telresUnmasked',
                    }"
                  />
                  {{ cliente.telresUnmasked }}
</v-col>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant