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 we use the default template for openDayEvents components to create a custom one, there will be an error:
Error: Unable to convert "undefined" into a date
this is because the default template uses date and locale params in order to generate spans with aria-label: openDayEventsAlert, openDayEventsLandmark, eventDescription, but at the same time this params are not added to ngTemplateOutletContext.
Minimal reproduction of the problem with instructions
Here's an extract from default template for open day events which uses missing params: <span tabindex="-1" role="alert" [attr.aria-label]="{ date: date, locale: locale } | calendarA11y: 'openDayEventsAlert'"></span> <span tabindex="0" role="landmark" [attr.aria-label]="{ date: date, locale: locale } | calendarA11y: 'openDayEventsLandmark'"></span>
Screenshots
and here we see that those params are missing in the outlet context:
Just to be clear, the missing params are:
@Input() locale: string;
@Input() date: Date;
Versions
@angular/core: 12.2.0
angular-calendar: 0.28.28
Browser name and version: Chrome Version 94.0.4606.81 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered:
Thanks so much for opening an issue! If you'd like me to give priority to answering your issue or would just like to support this project, then please consider sponsoring me
Describe the bug
If we use the default template for openDayEvents components to create a custom one, there will be an error:
this is because the default template uses date and locale params in order to generate spans with aria-label: openDayEventsAlert, openDayEventsLandmark, eventDescription, but at the same time this params are not added to ngTemplateOutletContext.
Minimal reproduction of the problem with instructions
Here's an extract from default template for open day events which uses missing params:
<span tabindex="-1" role="alert" [attr.aria-label]="{ date: date, locale: locale } | calendarA11y: 'openDayEventsAlert'"></span>
<span tabindex="0" role="landmark" [attr.aria-label]="{ date: date, locale: locale } | calendarA11y: 'openDayEventsLandmark'"></span>
Screenshots
and here we see that those params are missing in the outlet context:
Just to be clear, the missing params are:
@Input() locale: string;
@Input() date: Date;
Versions
@angular/core
: 12.2.0angular-calendar
: 0.28.28The text was updated successfully, but these errors were encountered: