-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with the last time Slot (drag and drop) #1625
Comments
I've run into this issue before as well. The reason is because when you drag a 30 minute event from the 11:00PM slot to the 11:30PM slot, it technically is trying to change the event to be 11:30PM to 12:00AM (of the same day) which is impossible. One workaround could be to change the slots to a bigger limit like 1 hour. |
I try this, but the problem still happen. thanks anyways. |
@FelipeGaraycochea, if you're able to throw up a general code sample of what you have, I'd be happy to peek at it with you. |
thanks. This is my return:
here are the functions:
here is the EventComponent :
im using hooks:
thank you very much. |
@FelipeGaraycochea, I had some time to put a fix together on this for you. If you add a conditional check inside of your Here's a code example: if (moment(start).format("HH:mm") > "22:59") {
end = moment(end).set({
"day": moment(start).get("day"),
"hour": "23",
"minute": "59",
}).toDate()
} Then the output would look like this: I hope this helps! |
Hello,
My problem is that when i try to move the event to the last slot, this one won't let me do that.
Anybody know what's happen ?
The text was updated successfully, but these errors were encountered: