From ce0336bd82d7d3651abcbde86af644197ddbc629 Mon Sep 17 00:00:00 2001 From: Jon Gunderson Date: Mon, 3 Apr 2023 22:24:12 -0500 Subject: [PATCH] Combobox Date Picker Example: Change previous and next month and year 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 --- .../examples/combobox-datepicker.html | 22 +- .../examples/css/combobox-datepicker.css | 10 + .../examples/js/combobox-datepicker.js | 49 +- test/tests/combobox_datepicker.js | 447 +++++++++++++++--- 4 files changed, 448 insertions(+), 80 deletions(-) diff --git a/content/patterns/combobox/examples/combobox-datepicker.html b/content/patterns/combobox/examples/combobox-datepicker.html index 7a6f47d3d5..fccb515cf1 100644 --- a/content/patterns/combobox/examples/combobox-datepicker.html +++ b/content/patterns/combobox/examples/combobox-datepicker.html @@ -312,7 +312,7 @@

Date Picker Dialog: Date Grid

- + Enter