Closed eder-ferraz-caciano closed 2 years ago
I was unable to reproduce this on both chrome or safari, setting to null worked fine in the demo page.
I am having this problem. Here is my attempt to reproduce. https://codepen.io/MatthewAry/pen/MWXOzJV
i am having the same problem with vuetify
Describe the bug
When using a mask array in the v-mask directive, it is not possible to set a null value in the v-model. This makes it impossible to reset the form data. Example of using the mask:
<input v-model="CpfCnpj" type="text" v-mask="['###.###.###-##', '##.###.###/####-##']" />
<button @click="CpfCnpj = null"> Clear </button>
To Reproduce Steps to reproduce the behavior:
<button @click="CpfCnpj = 00133266545"> Set Value </button>
<button @click="CpfCnpj = null"> Clear </button>
Expected behavior It must be possible to set a null value in the v-model that has the mask array
Desktop (please complete the following information):
Additional context Only the component that uses a mascara array doesn't allow to set null value in v-model. So correctly a form is impossible.