vuejs3-datepicker icon indicating copy to clipboard operation
vuejs3-datepicker copied to clipboard

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

Open merrillh opened this issue 2 years ago • 0 comments

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>

merrillh avatar Nov 14 '22 21:11 merrillh