Skip to content

[docs][scheduler] Fix the broken event model and resource snippets - #23840

Merged
rita-codes merged 2 commits into
mui:masterfrom
rita-codes:23839-docsscheduler-fix-the-broken-event-model-and-resource-snippets
Oct 12, 2026
Merged

rita-codes merged 2 commits into
mui:masterfrom
rita-codes:23839-docsscheduler-fix-the-broken-event-model-and-resource-snippets

Conversation

@rita-codes

@rita-codes rita-codes commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Fixes #23839.

Same fixes on the Event Calendar and Event Timeline pages:

  • The eventModelStructure setter returns the event. Without it, editing the title called onEventsChange with [undefined].
  • The first Resources snippet uses title instead of name (with name, both components throw: the Event Calendar with a Tree View label error, the Event Timeline with Cannot read properties of undefined (reading 'localeCompare')) and declares events, the name passed to the component.
  • The areEventsResizable resource snippet is a valid object. The "start" and "end" values get their own snippet, worded like the Drag interactions page, instead of repeated keys without commas.

@rita-codes rita-codes added type: bug It doesn't behave as expected. docs Improvements or additions to the documentation. scope: scheduler Changes related to the scheduler. labels Oct 12, 2026
@rita-codes rita-codes self-assigned this Oct 12, 2026
@code-infra-dashboard

code-infra-dashboard Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Deploy preview

Bundle size

Bundle Parsed size Gzip size
@mui/x-data-grid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium 0B(0.00%) 0B(0.00%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-charts-premium 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)
@mui/x-scheduler 0B(0.00%) 0B(0.00%)
@mui/x-scheduler-premium 0B(0.00%) 0B(0.00%)
@mui/x-chat 0B(0.00%) 0B(0.00%)
@mui/x-license 0B(0.00%) 0B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

@flaviendelangle flaviendelangle left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@rita-codes
rita-codes merged commit d3b8460 into mui:master Oct 12, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to the documentation. scope: scheduler Changes related to the scheduler. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[docs][scheduler] Fix the broken event model and resource snippets

2 participants