v-mask icon indicating copy to clipboard operation
v-mask copied to clipboard

Mask doesn't work with v-model.lazy

Open c-kirkeby opened this issue 6 years ago • 1 comments

Currently the mask only applies on blur when using with v-model.lazy. This makes sense, but it also severely limits the usage with async validation through libraries like vee-validate and vuelidate.

V-Mask and Vue versions

1.3.3, 2.5.2

Reproduction Link

https://codesandbox.io/s/qv7360k6ow

Steps to reproduce

In my codesandbox link I've got two examples both using v-model.lazy:

  • Text field without a mask
  • A number field with the mask '## #### ####'
  1. Type three or more numbers into the field labelled 'Phone'
  2. Tab out of the field It's not until you tab out that the mask gets applied.

What is Expected?

What is actually happening?

c-kirkeby avatar Jan 24 '19 08:01 c-kirkeby

any solution for this?

AngEric avatar Feb 18 '22 12:02 AngEric