kalend
kalend copied to clipboard
Console error when creating an event by dragging
Description I'm trying to use Kalend in a react project and after creating an event by dragging instead of just clicking I get this error

Desktop:
- Windows
- Chrome
Hello, would you be please able to recreate this bug in something like codepen? Or maybe provide more details under which conditions it occurs so I could simulate it?
Finding where this value is will be easy, but I have not experienced this issue, so this could be quite hard to debug.
We can create events by either just left clicking once (defaults to 1 hour difference between the start and end date) or we can left-click and hold and choose a different end time. This issue happens when creating an event with the second option. I would try to recreate in codepen but it's really just this holding way of creating an event that is making this bug happen
I encountered the same problem, and I have turned off drag creation.
Doing some testing of the library and I've been able to reproduce this fairly consistently. It occurs even when calling the component with <Kalend events={[]} />
You have to first drag up to create a new event with an end time but variable start time. Finish the drag and the event disappears, then click and drag on the blank space where the event was. It only seems to happen once per page load though.
Thank you. This should be fixed in version 0.17.6.