vkurko/calendar

incorrect date click information

hmzxpcm opened this issue · 8 comments

if the grid starts at 9:20, the step is 30 minutes, then when you click at the end of the cell, for example, from 10:20 to 10:50, the callback returns date: 10:00, and if you click at the beginning of the cell, it returns 9:30.

2023-05-29.18.36.08.mov

the video shows how an event is created when clicking on a cell, the date returned in this case is the start date of the event

unfortunately, I have not found how to solve this problem. And couldn't find an alternative to dateClick. I need an event to be created when clicking on a cell in it.

vkurko commented

Can you provide a live demo please? You can use this template.

https://jsbin.com/yewuladuyi/1/edit?js,console,output

Can you provide a live demo please? You can use this template.

2023-05-29.20.52.48.mov
vkurko commented

Thank you for the demo. I confirm the issue. I'll try to provide a fix a.s.a.p.

Thank you, please tell me how much time it can take approximately?

vkurko commented

I've just released v1.3.1 with the fix. Please check it.

it helped, thank you. You have a very good library, I think I will contact you more than once with feedback. :)