Selecting next/previous month is confusing when selectOtherMonths is active
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 11.3k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
When selectOtherMonths is active and a day from another month is selected, the "Previous month" and "Next month" buttons behave in a confusing way, where they skip over a month (or do nothing when going the other way).
Reproduction example: https://jsfiddle.net/wb43muyz/
Steps to reproduce:
- Select Feb 1 (at the bottom, don't use the next month buttons).
- Click on the "Next month" button.
- You have now jumped from January to March.
It would be less confusing if the next/previous buttons would take the currently shown month as basis, instead of the currently selected date.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the behavior in the linked jsfiddle with selectOtherMonths enabled, following the listed February 1 and Next month steps. Trace the datepicker's Previous month and Next month navigation to compare the displayed month with the selected date. Done means both buttons move one month from the currently shown month without skipping or doing nothing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, jquery
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100