-
Notifications
You must be signed in to change notification settings - Fork 871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vue 3.5 - Uncaught TypeError: Cannot read properties of undefined (reading 'dayIndex') #1498
Comments
Same for me. |
Same for me |
Same for me. |
Same for me |
Same for me. |
Please, folks. We don't need "Same for me". It is the same for all of us. |
This repo hasn't seen a commit since Oct 2023. And all issues over the last year have been self-closed by users. I suspect this project has been abandoned. I would highly doubt this issue will get resolved until a fork happens. |
There has been some activity in the |
any alternative suggestions here? maybe a new module or an older version of v-calender |
For now, i'v changed v calendar to version: |
Doesn't work for me, did you downgrade any other libs as well? |
UPDATE: // outdated: I had this same error appear after upgrading vue in a multi-date implementation of the Datepicker, I was forcing a re-render on date de-selection because it wasn't updating the display before, found that by adding keys to my composed date attributes (oops) I didn't need to force a re-render and this error also went away. async function handleDayClick(day: CalendarDay, _event: MouseEvent) {
...
if (valueIndex !== undefined && valueIndex >= 0 && (props.isMultiday || !props.isRequired)) {
model.value?.splice(valueIndex, 1);
// I used to force a re-render here
// reRenderKey.value += 1;
...
} else if (props.isMultiday) {
...
}
} |
I can confirm that v-calendar v3.0.0 does not throw the Edit: 3.0.1 is also safe with vue 3.5, and fixes auto form submission because buttons now have a type attribute |
|
This silenced it for me! Thanks @akorajac. Here is the full context for clarity: <VCalendarDatePicker
<!-- other props -->
@dayclick="
(_, event) => {
event.target.blur();
}
" /> |
I can confirm that v-calendar v3.0.1 does not throw the dayIndex error neither ! |
Confirm +1 |
I think this might help you all; switch to using this guy’s forked version. |
I have the same error after updating to the latest version. |
Just upgraded to vue 3.5.1 and it seems the reactive system in the latest from Vue is causing issues like below. Vue 3.4.38 worked just fine.
The text was updated successfully, but these errors were encountered: