Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Selecting next/previous month is confusing when selectOtherMonths is active #2208

Open
jlherren opened this issue Jan 23, 2024 · 4 comments
Open

Comments

@jlherren
Copy link

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:

  1. Select Feb 1 (at the bottom, don't use the next month buttons).
  2. Click on the "Next month" button.
  3. 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.

@mgol
Copy link
Member

mgol commented Jan 26, 2024

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?

@jlherren
Copy link
Author

The issue is the same on jQuery UI 1.12.1, see https://jsfiddle.net/xgpzvq0o/1/

@mgol
Copy link
Member

mgol commented Jan 27, 2024

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.

@jlherren
Copy link
Author

That's understandable, thanks anyway!

# for free to join this conversation on GitHub. Already have an account? # to comment
Development

No branches or pull requests

2 participants