shubhadip / vuejs3-datepicker

vue 3 datepicker. supports disabling, highlighting of dates and programmatic access of date.
https://vuejs3-datepicker.netlify.app/
MIT License
70 stars 41 forks source link

using the clear-button property causes the error: e.clearDate is not a function #50

Closed merrillh closed 1 year ago

merrillh commented 1 year ago

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>
shubhadip commented 1 year ago

issue addressed in https://github.com/shubhadip/vuejs3-datepicker/pull/56