Skip to content

DatePicker bug introduced in PrimeVue/PrimeVue Forms 4.4.0 #8191

@bjorntj

Description

@bjorntj

Describe the bug

I have the following code for DatePicker:

<DatePicker
            id="dato"
            name="dato"
            fluid
            show-icon
            show-button-bar
            dateFormat="dd.mm.yy"
          />

And I set the initial value for dato = new Date(). Before version 4.4.0, that resulted in todays date as the chosen date for DatePicker and showing 10.10.2025 in the input field. But since version 4.4.0, the DatePicker input field is blank and clicking in the input field, shows the following text:

Fri Oct 10 2025 10:42:19 GMT+0200 (Central European Summer Time)

After choosing a date in the DatePicker, then the date shows as it should in the input field.

I am guessing that this is not a new feature, hopefully, so can you please fix this...

btw, this happends when using the DatePicker together with primevue forms.

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/primevue-4-vite-issue-template-ubgpsdf3?file=src%2FApp.vue,package.json

Environment

MacOS, Node 22.20.0.

Vue version

3.5.22

PrimeVue version

4.4.1

Node version

22.20.0

Browser(s)

No response

Steps to reproduce the behavior

Look at the example in the description.

Expected behavior

I expect the same result as in PrimeVue 3.3.9 (and earlier).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs TriageIssue will be reviewed by Core Team and a relevant label will be added as soon as possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions