antoniandre / vue-cal-v4

A Vue.js full calendar, no dependency, no BS. :metal:
https://antoniandre.github.io/vue-cal-v4/
MIT License
1.25k stars 235 forks source link

Invalid Date on increasing size of multi day event #566

Open Prancingkiller opened 11 months ago

Prancingkiller commented 11 months ago

When i try to resize a multiday event the originalEvent end property has an "Invalid Date" value, the start value is correct. before trying to resize the event everything is correct, for example if i have an event that has: start: Tue Dec 05 2023 19:45:00 GMT+0100 end: Wed Dec 06 2023 03:00:00 GMT+0100

and i try to resize it adding one hour at the end, (resize by dragging down the end) the object returned by the @event-change function is:

event.start: Tue Dec 05 2023 19:45:00 GMT+0100 event.end: Wed Dec 06 2023 04:00:00 GMT+0100

originalEvent.start: Tue Dec 05 2023 19:45:00 GMT+0100 originalEvent.end: Invalid Date

so the problem i'm seeing is on the originalEvent.end property, i read in the docs that not everything is working yet with the multiday events (like dragging is disabled), this is an expected issue or is it supposed to work fine? the same thing for a singleday event is working perfectly.

thanks.

Prancingkiller commented 11 months ago

I fixed it temporarily assigning manually the end property with a value from the ref array i'm using as source of events.