vuejs-tips / vue-the-mask

Tiny (<2k gzipped) and dependency free mask input for Vue.js
https://vuejs-tips.github.io/vue-the-mask/
1.72k stars 212 forks source link

please only work if there is a binding value #191

Open 9ssi7 opened 2 years ago

9ssi7 commented 2 years ago

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.

wokalek-work commented 2 years ago

Thanks!

Same call, someone need to PR this!