kalend icon indicating copy to clipboard operation
kalend copied to clipboard

Console error when creating an event by dragging

Open Kurler3 opened this issue 3 years ago • 2 comments

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

image

Desktop:

  • Windows
  • Chrome

Kurler3 avatar Sep 02 '22 14:09 Kurler3

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.

nibdo avatar Sep 02 '22 18:09 nibdo

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

Kurler3 avatar Sep 05 '22 07:09 Kurler3

I encountered the same problem, and I have turned off drag creation.

jianhao2010303 avatar Nov 18 '22 09:11 jianhao2010303

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.

aaron-hutton avatar Dec 14 '22 15:12 aaron-hutton

Thank you. This should be fixed in version 0.17.6.

nibdo avatar Jan 22 '23 00:01 nibdo