Skip to content

Datepicker - changemonth not workig #2389

Description

@viktorvi

Month selector is not working. It start to work, if you change the year before.

https://jsfiddle.net/bm42r3oq/

Image

Activity

  1. mgol commented on Feb 7, 2026

    @mgol
    Member

    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?

  2. viktorvi commented on Feb 7, 2026

    @viktorvi
    Author

    1.11.4 is working correctly.

    I am able to reproduce the problem when numberOfMonths option used with jQuery UI 1.13.0 and 1.14.2

    $(function() {
    $('#calendarDiv').datepicker({
    numberOfMonths: 3,
    maxDate: 0,
    stepMonths: 1,
    changeYear: true,
    changeMonth: true
    });
    });

  3. mgol commented on Feb 7, 2026

    @mgol
    Member

    What about 1.12.1?

  4. viktorvi commented on Feb 8, 2026

    @viktorvi
    Author

    1.12.1 contains the problem.

    I have attached examples.

    1.11.4-Working.html
    1.12.1.html
    1.13.0.html
    1.14.2.html

  5. mgol commented on Feb 8, 2026

    @mgol
    Member

    Thanks for the info. 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 and contain tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions