mengxiong10 / vue2-datepicker

A datepicker / datetimepicker component for Vue2
https://mengxiong10.github.io/vue2-datepicker/index.html
MIT License
1.51k stars 405 forks source link

I am unable to use input-error event #708

Closed ShikshaInfotechPvtLtd closed 2 years ago

ShikshaInfotechPvtLtd commented 2 years ago

Hi, I am unable to use the input-error events. <date-picker @input-error="chkDate()" v-model="date"> I have a couple of questions regarding this date picker whenever a user types the wrong date it is automatically converted into a valid date. is it possible to stop this feature?

mengxiong10 commented 2 years ago
<date-picker @input-error="handleInputError" v-model="date">
methods: {
   handleInputError() {
     this.date = new Date()
    }
}