vuejs-tips/vue-the-mask

please only work if there is a binding value

9ssi7 opened this issue · 1 comments

9ssi7 commented

Hello,
vue-the-mask for me is the best choice for vue in mask. However, it has a small shortcoming. I usually return my form values with a v-for. But it tries to work even if I have sent the value undefined to the v-mask directive. I want it to work only if it has a value in it.

For example, when I return an object like this, v-mask tries to work for my form value that does not contain the vMask value and breaks my form:

vue-the-mask

Workaround I found for now:

vue-the-mask2

I hope I was able to explain my request. Even if you don't fix it, I will continue with the workaround. Good luch with.

Thanks!

Same call, someone need to PR this!