DatePicker: dd/mm/yy date format through ref is displaying NaN on datepicker #7010
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When using the "dd/mm/yy" date format in ref, the displayed output is NaN/NaN/NaN instead of the expected date format. This issue is happening in primeVue 4.2.5
`
<script setup> import { ref } from 'vue'; const date = ref('25/12/2024'); </script>`
Reproducer
https://stackblitz.com/edit/primevue-4-vite-issue-template-udtg8djk
PrimeVue version
4.2.5
Vue version
4.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
chrome
Steps to reproduce the behavior
Steps to Reproduce
NOTE: it doesn't work with the version "4.2.5"
Ex:
<script setup> import { ref } from 'vue'; const date = ref('25/12/2024'); </script>Expected behavior
I expect when i pass a date dd/mm/yyyy format to ref. eg const date = ref('25/12/2024'); and bind through v-model of datepicker. It should display 25/12/2024 instead of NaN/NaN/NaN
The text was updated successfully, but these errors were encountered: