-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
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).