Open barrct opened 5 years ago
isn't the dayclick to just use a single day instead of multiple days?
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:
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.