Open NightFurySL2001 opened 2 months ago
The start and end date of originalEvent param returned by @event-drop is of type string, not Date object. The originalEvent param returned by @event-duration-change does use Date object. Demo code:
originalEvent
@event-drop
@event-duration-change
<template> <vue-cal @event-drop="eventDrop"> </template> <script setup> const eventDrop = (event, originalEvent) => { console.log("changing", event, originalEvent) console.log("changing type", typeof event.start,typeof originalEvent.start) }; </script>
The start and end date of
originalEvent
param returned by@event-drop
is of type string, not Date object. TheoriginalEvent
param returned by@event-duration-change
does use Date object. Demo code: