i'm having trouble with implementing createCorrectedDatePipe plugin. this is my setup
<script src="vanillaTextMask.js"></script>
<script src="createAutoCorrectedDatePipe.js"></script>
<script>
var autoCorrectedDatePipe = createAutoCorrectedDatePipe('mm/dd/yyyy')
vanillaTextMask.maskInput({
inputElement: el,
mask: autoCorrectedDatePipe
});
</script>
i'm getting
da42fc1_vanillaTextMask_1.js?v1.5:1 Uncaught TypeError: e.indexOf is not a function
autoCorrectedDatePipe is a pipe, not a mask.
vanillaTextMask.maskInput({
inputElement: el,
mask: [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/],
pipe: autoCorrectedDatePipe
});
Hope that helps.. feel free to re-open the issue if you have any other related questions
Most helpful comment
autoCorrectedDatePipeis a pipe, not a mask.Hope that helps.. feel free to re-open the issue if you have any other related questions