Skip to content
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

Merged

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Oct 5, 2018

Doesn't allow users to click on disabled cells inside the calendar in the year and multi-year views.

Fixes #13446.

@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Oct 5, 2018
@crisbeto crisbeto requested a review from mmalerba as a code owner October 5, 2018 15:08
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Oct 5, 2018
@@ -3,7 +3,6 @@
<tr><th class="mat-calendar-table-header-divider" colspan="4"></th></tr>
</thead>
<tbody mat-calendar-body
allowDisabledSelection="true"
Copy link
Member Author

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.

Copy link
Contributor

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?

Copy link
Member Author

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.
@crisbeto crisbeto force-pushed the 13446/datepicker-disabled-cell-click branch from 74510ef to 80edd2e Compare October 5, 2018 18:12
@mmalerba mmalerba added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Oct 5, 2018
@josephperrott josephperrott merged commit c15bad2 into angular:master Oct 19, 2018
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clicking on disable month or year it takes to respective view in the calendar
4 participants