You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to Vuetify 2 and using your v-mask to replace the old mask I noticed an issue. We use Vuelidate for form validation and when a field has both a mask and is required it gets highlighted in red immediately.
The demo shows a comparison between 4 types of required fields. Note how only the Vuelidate required and masked field is prematurely highlighted.
Here's my shot in the dark at what the problem might be.
I'm thinking the field is being touched by the directive unnecessarily.
Maybe a simple fix could be something like this:
After upgrading to Vuetify 2 and using your v-mask to replace the old mask I noticed an issue. We use Vuelidate for form validation and when a field has both a mask and is required it gets highlighted in red immediately.
Any help would be greatly appreciated.
Demo repo: v-mask-required(deleted)The demo shows a comparison between 4 types of required fields. Note how only the Vuelidate required and masked field is prematurely highlighted.
Here's my shot in the dark at what the problem might be.
I'm thinking the field is being touched by the directive unnecessarily.
Maybe a simple fix could be something like this:
After all there shouldn't be a need to touch the value of the input if it hasn't changed.
The text was updated successfully, but these errors were encountered: