If I need an action to happen when a data is selected, confirmation, added detail, or to update a second instance's blackout dates, as soon as I add the function for [dayClick] it clears out all days on the calendar.
Now, if this is expected, I would say it's weird but I suspect that it should not wipe out all data. The below tweaks seems to allow the calendar to function in the way that I expected the [dayClick] trigger to work.
if (typeof this.dayClick == 'function') {
this.dayClick(event, day);
/*
if (!day.mdp.selected) {
this.projectScope = [day.date];
this.generate();
this.dayClick(event, day);
}
else {
this.clearDays();
this.dayClick(event, day);
}
*/
}
If I need an action to happen when a data is selected, confirmation, added detail, or to update a second instance's blackout dates, as soon as I add the function for [dayClick] it clears out all days on the calendar.
Now, if this is expected, I would say it's weird but I suspect that it should not wipe out all data. The below tweaks seems to allow the calendar to function in the way that I expected the [dayClick] trigger to work.