vuejs3-datepicker
vuejs3-datepicker copied to clipboard
using the clear-button property causes the error: e.clearDate is not a function
When I select a date and click the clear date button, I get the error: "Uncaught TypeError: e.clearDate is not a function" when using the property clear-button
<template>
<Datepicker
:clear-button="true"
/>
</template>
<script>
import { ref } from 'vue';
import Datepicker2 from 'vuejs3-datepicker';
export default {
components: {
Datepicker,
},
setup() {
const date = ref();
return {
date,
dateFormat: 'yyyy-MM-dd',
}
}
};
</script>