Open
Description
Describe the bug
Commit 1536d12 fixed issue #7010 however now it breaks the formatting when DatePicker is given an ISO string.
Pull Request Link
Reproducer
https://stackblitz.com/edit/primevue-4-vite-issue-template-ftdl6m5c?file=src%2FApp.vue
Environment
- Windows 11
Vue version
3.4.31
PrimeVue version
4.3.1
Browser(s)
Edge 135.0.3168.2
Steps to reproduce the behavior
- Input an ISO string to DatePicker
- You can see the date is not being formatted to the specified dateFormat
Expected behavior
- Input an ISO string to DatePicker
- Format the date according to dateFormat as in PrimeVue 4.2.5 (before commit 1536d12), similarly as it would occur if the input was a Date object.
Considering PrimeVue documentation specifies Date | null
as input to DatePicker, the fix to issue #7010, although allowing more flexibility to DatePicker, ends up breaking an, IMHO, much more expected behavior of properly parsing an ISO string.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Review