You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to set default value of date, convert it to Date first using new Date(val).
An error occurs during {{ slotProps.componentField.modelValue ? df.format(slotProps.componentField.modelValue.toDate(getLocalTimeZone())) : "Pick a date" }}
because slotProps.componentField.modelValue is of type string and not a DateValue like expected by Calendar component.
Reproduction
https://stackblitz.com/edit/nuxt-vue-3-4-beta-twkyrr?file=src%2Fpages%2Fhome%2FHomePage.vue
Describe the bug
In documentation:
An error occurs during
{{ slotProps.componentField.modelValue ? df.format(slotProps.componentField.modelValue.toDate(getLocalTimeZone())) : "Pick a date" }}
because slotProps.componentField.modelValue is of type string and not a DateValue like expected by Calendar component.
System Info
Contributes
The text was updated successfully, but these errors were encountered: