I have been utilizing the vue2-datepicker npm package for handling dates. The date input currently accepts all alphabets, numbers, and special characters but I only want it to allow numbers, hyphens, and forward slashes. It's simple to achieve this using a regular HTML input field, but how can I implement this restriction in the date picker? Any assistance on this matter would be highly appreciated. Thank you in advance.
Here is the link to the npm package I am utilizing.
An image demonstrating the input field with various values being accepted.
Below are the tags and attributes I am employing:
<date-picker
:placeholder="fieldItem.name"
v-model="fieldItem.value"
format="MM-DD-YYYY"
v-if="fieldItem.type == 'datePicker'"
type="number"
></date-picker>