Skip to content

Calendar: updateViewDate does not update the year in the title #8258

@gatanaso

Description

@gatanaso

Describe the bug

When using updateViewDate(null, date) the dates in the overlay change but the title does not update.

Reproducer

https://stackblitz.com/edit/pkpkq47a-ambhsfzj?file=src%2FApp.jsx

System Information

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 20.19.1 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.8.2 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    primereact: latest => 10.9.7 
    react: 18.3.1 => 18.3.1

Steps to reproduce the behavior

  1. Open the reproducer
  2. Click on the custom header buttons
  3. The dates in the overlay update correctly, however, the title remains the same

I believe this might have been introduced with 92de1eb

Expected behavior

The title is updated to match the view date that is set via updateViewDate()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution: DuplicateIssue has already been reported or a pull request related to same issue has already been submitted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions