Calendar: Invalid typings for modelValue. #3609
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
type CalendarValueType = string | Date | string[] | Date[] | undefined;
Calendar allows null values. For example range input allows array with one value date and second value null. Event official documentation uses nulls.
This type should be probably rewritten as so:
to
Reproducer
https://codesandbox.io/p/sandbox/vite-primevue-forked-2mhcvu?file=%2Fsrc%2FApp.vue
PrimeVue version
3.22.4
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: