New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug(mat-calendar): The dateClass callback is not called then in month view. #20017
Comments
@N-Andronopoulos can you share a stackblitz that demonstrates this issue? |
I think that this is working as expected. The name implies that it'll be called only on date cells, rather than month or year cells from the other views. |
I think its logical to be used as I describe it since |
That's fair. I think that we might need to pass in the name of the current view to the callback too, otherwise there won't be a way to distinguish the first date of a month from the cell representing that month. |
We have a `dateClass` input that allows consumers to set classes to particular date cells, however currently we only invoke it inside the month view. These changes pass it along to the year and multi-year views too and provide the name of the view that invoked it so that cases like the first date of a month and a month cell can be distinguished. Fixes angular#20017.
We have a `dateClass` input that allows consumers to set classes to particular date cells, however currently we only invoke it inside the month view. These changes pass it along to the year and multi-year views too and provide the name of the view that invoked it so that cases like the first date of a month and a month cell can be distinguished. Fixes angular#20017.
We have a `dateClass` input that allows consumers to set classes to particular date cells, however currently we only invoke it inside the month view. These changes pass it along to the year and multi-year views too and provide the name of the view that invoked it so that cases like the first date of a month and a month cell can be distinguished. Fixes angular#20017.
We have a `dateClass` input that allows consumers to set classes to particular date cells, however currently we only invoke it inside the month view. These changes pass it along to the year and multi-year views too and provide the name of the view that invoked it so that cases like the first date of a month and a month cell can be distinguished. Fixes #20017.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
…lar#20256) We have a `dateClass` input that allows consumers to set classes to particular date cells, however currently we only invoke it inside the month view. These changes pass it along to the year and multi-year views too and provide the name of the view that invoked it so that cases like the first date of a month and a month cell can be distinguished. Fixes angular#20017.
Reproduction
Steps to reproduce:
Expected Behavior
I should be able to put css classes on month cells just like the days cells.
Actual Behavior
Only while in date view the dateClass callback is called for all month days.
Environment
The text was updated successfully, but these errors were encountered: