Skip to content

calling dayClick clears all selected days #17

@barrct

Description

@barrct

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);
        }
        */
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions