-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[scheduler] Improve the internals of the Time Grid drag and drop #19326
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
[scheduler] Improve the internals of the Time Grid drag and drop #19326
Conversation
Deploy preview: https://deploy-preview-19326--material-ui-x.netlify.app/ Bundle size report
|
I think I've found a bug 👀. I've tried the same thing in production, and it works well there. Screen.Recording.2025-08-25.at.17.40.28.mov |
Nice catch, fixed 🙏 @rita-codes |
@flaviendelangle Not sure if this is related to the latest fix or my changes blocking the dragging for recurring events, but as you can see in the video everything works perfectly for most of the events but if I try to drag the "Design review Scheduler" is not working, are we blocking drag & drop for anything other than recurring events? 🤔 Screen.Recording.2025-08-28.at.10.37.42.mov |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
@rita-codes as discussed during our meeting, this event is read only 👍 |
...ges/x-scheduler/src/primitives/time-grid/event-resize-handler/TimeGridEventResizeHandler.tsx
Outdated
Show resolved
Hide resolved
packages/x-scheduler/src/primitives/time-grid/event/TimeGridEvent.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a couple of small comments
Super nice improvement, great job! 🤩
I've created a new issue for the “duplication” of the event when dropping quickly, since I think it’s not related to this refactor + added some items to the tests issue that I think could make sense to cover the drag & drop
Extracted from #18973
TimeGrid.useColumnPlaceholder
withTimeGrid.usePlaceholderInRange
to support columns that are not exactly one day long and to do the same on the Day Grid equivalent<DayTimeGrid />
component into a standalone<TimeGridColumn />
component (makes the placeholder management cleaner).