Selecting next/previous month is confusing when selectOtherMonths is active
jlherren opened this issue · 4 comments
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.
Thanks for the report. Does the issue you describe exist when jQuery UI 1.12.1 is used or only with jQuery UI 1.13.0 or newer?
The issue is the same on jQuery UI 1.12.1, see https://jsfiddle.net/xgpzvq0o/1/
Thanks for the report. Since the issue is already in 1.12, given limited team resources it's not likely to be fixed by the UI team; see the project status at https://blog.jqueryui.com/2021/10/jquery-maintainers-update-and-transition-jquery-ui-as-part-of-overall-modernization-efforts/. PRs are welcome if they're not too complex.
That's understandable, thanks anyway!