Hello,
Calendar app contain a bug or error.
When I'm trying to add an event using "+ Add event" button, I get only this error in my console.log:
Uncaught TypeError: can't access property "hide", pa.getInstance(...) is null
Clicking on a random day and closing modal make "+ add event" button working again.
This issue is present on metronic demo website
https://preview.keenthemes.com/metronic8/vue/demo1/#/apps/calendar
Hi,
This is an issue, we will fix it in an upcoming release.
For now, as a temporary solution, you can use the newEvent function to open the modal.
HTML:
<button
class="btn btn-flex btn-primary"
@click="newEvent()"
>
<span class="svg-icon svg-icon-2">
<inline-svg src="media/icons/duotune/arrows/arr075.svg" />
</span>
Add Event
</button>
const newEvent = () => {
const modal = new Modal(document.getElementById("kt_modal_add_event"));
modal.show();
};