Open antonioribeiro opened 6 years ago
Getting this problem too
Is this problem still unsolved?
:(
A workaround is to avoid affecting the inputs of type email
.../src/plugins/mask.ts
import { defineNuxtPlugin } from '#app';
import { mask } from 'vue-the-mask';
export default defineNuxtPlugin((app) => {
app.vueApp.directive('mask', {
created: (el, binding, vnode, prevVnode) => {
// Avoid setting directives on `inputs` of type `email` to avoid error
// thrown by `vue-the-mask`.
if (vnode.props.type === 'email') return;
return mask(el, binding, vnode, prevVnode);
},
});
});
If we do (I know I'll have to tweak to accept other chars!):
We get a
https://jsfiddle.net/xe7nd0o2/2/