Calendar: Overwrites date when in time-only mode #4901
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 calendar component in time-only mode, the date passed to it via v-model is overwritten to new Date(). This causes the model itself to be overwritten and causes unexpected behavior in consuming applications.
This does not occur when the time is changed vie the incremental arrow buttons, it only occurs when inputting a new time via the textbox.
Reproducer
https://codesandbox.io/p/devbox/primevue-calendar-bug-t38fnj?file=%2Fsrc%2FApp.vue%3A15%2C12
PrimeVue version
3.29.2
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
Changing time should result in the date staying the same, as it already does when incrementing via the arrow buttons.
The text was updated successfully, but these errors were encountered: