You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Sorry, been on other projects.
Isn't dayClick to use a single day?
I'm not reading the parameter that way, I read the parameter as "when a DAY is CLICKED, notify some process" especially when the module is "multiple-date-picker".
Examples:
When a day is clicked, mark a form dirty so the user knows they can save the form.
Build a list of selected dates to assign people to in a list below
Black out days on another calendar (Maybe this is a "company closed" calendar and the office calendars are lower). My specific use case is marketing where I have one calendar for the "cutoff" dates to get material in and a second calendar that is the "publish" dates. The dates on one calendar define what is disabled on the other.
btw, the above edit to allow the dayClick action to fire while maintaining the "multiple" aspect of the module is in
/dist/multiple-date-picker.component.js
line 121 of version 3.0.0
It is within the MultipleDatePickerComponent.prototype.toggleDay function
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.
The text was updated successfully, but these errors were encountered: