We have a PrimeVue calendar (with a time picker) component. We have added a close button in the footer to close the calendar when that button is clicked.
The problem is that when we try to close the calendar component on button click, it does not close. It also does not throw an error.
This is the code that we have so far:
<Calendar
id="start"
ref="dateSelect"
v-model="matchModel.startDate"
placeholder="Start date"
:showTime="true"
:showIcon="true"
:yearNavigator="true"
:monthNavigator="true"
yearRange="1910:2030"
>
<template #footer>
<button v-on:click="$emit('hide')">Close</button>
</template>
</Calendar>
Please may you assist on how we can close the calendar component when the close button is clicked