-
Notifications
You must be signed in to change notification settings - Fork 363
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
Date picker calendar grids: Previous and next month and year functions do not behave as documented #2581
Comments
Hi @smellai, Thank you for the feedback. There are several possible solutions for what to do when the same date does not exist in the previous or next period of time. I believe the task force considered the approach you suggest. The approach that was chosen is documented in the keyboard table as follows:
I recall the task force having discussion of the above design decision, but I can't find documentation of the discussion in any of the related issues. It may be in meeting minutes; that would be a more time consuming search. It may be more expedient to re-open the discussion. If you think the task force should re-open this discussion, would you please:
|
I could be ok with the approach described in the documentation, but doesn't look like the demo is working in the way described. This is what I see:
and
and
|
Hi @smellai and @mcking65 ,
|
We have decided to change the behavior so that previous/next month/year functions put focus on the last day of the month in the newly displayed month if the same day number does not exist. In this way, previous/next month will always move to a new month. Previous/next year are only affected if the focus is on Feb 29 when the function is activated. This issue impacts both:
The changes in PR #2618 are on track to make it into production on April 11. It is possible that #2643 changes could make it at the same time, but if not, they will be on track to land before the end of April. |
… behavior for dates near end of month (pull #2618) Provides partial resolution of #2581. The remainder of the resolution is provided by #2643. This PR changes behavior of commands for next and previous month and year In the combobox date picker when the currently focused date does not exist in the previous or next month or year. With these changes, if the same day number does not exist in the newly displayed month, the last day of the newly displayed month receives focus. --------- Co-authored-by: Matt King <[email protected]>
…nce with APG code style guide (pull #2643) This PR complements PR #2618 to provide the remaining changes to resolve issue #2581. This PR changes behavior of commands for next and previous month and year In the date picker dialog when the currently focused date does not exist in the previous or next month or year. With these changes, if the same day number does not exist in the newly displayed month, the last day of the newly displayed month receives focus. In addition to the above enhancement, this PR also includes the following changes: * Updates coding practices to use `class` constructor and pointer events * Updates documentation of page up and page down commands * Updates regression tests for page up and page down commands --------- Co-authored-by: Matt King <[email protected]>
I found an edge case with '
PageUp
' and 'PageDown
' navigation.PageUp
Proposed solution:
And similar for shift+PageUp:
That last one covers if current year has Feb 29 and next year obviously not.
The text was updated successfully, but these errors were encountered: