-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
fix(datepicker): don't allow clicks on disabled cells in year and multi-year views #13448
fix(datepicker): don't allow clicks on disabled cells in year and multi-year views #13448
Conversation
@@ -3,7 +3,6 @@ | |||
<tr><th class="mat-calendar-table-header-divider" colspan="4"></th></tr> | |||
</thead> | |||
<tbody mat-calendar-body | |||
allowDisabledSelection="true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mmalerba this behavior seems pretty deliberate, but I'm not sure whether it makes sense. Also it only applies to mouse users, because you can't reach disabled cells with the keyboard.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like its been that way since the beginning, but I don't remember why I did it, and I agree that it doesn't really make sense. Can we also remove the allowDisabledSelection
input from calendar body?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
…ti-year views Doesn't allow users to click on disabled cells inside the calendar in the year and multi-year views. Fixes angular#13446.
74510ef
to
80edd2e
Compare
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. |
Doesn't allow users to click on disabled cells inside the calendar in the year and multi-year views.
Fixes #13446.