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

Add information to disable the vue-mask directive #172

Closed cassiompf closed 2 years ago

cassiompf commented 3 years ago

I needed to use the vue-mask on a custom input component. I didn't always want to use the vue-mask in my input fields, and in order not to use a v-if with v-else just to make another input without the v-mask directive, I had to keep testing to deactivate the v-mask="". This component of mine receives a props called mask that I added in: v-mask="mask" and I was unsure how to disable the v-mask. Nowhere in the documentation did I find this information to disable v-mask, so I found it useful to add this to the read-me. At first I thought that using only "" empty string would work, in fact it was just using null, leaving as a final result: v-mask="null".