Skip to content

[scheduler] Events created on the Event Timeline can't be all-day by default #24410

Backlog

Description

@rita-codes

What I tried

Add a new phase to a crew by double clicking its row on the Event Timeline (task 4 of the construction app's spec). Every phase of the app is an all-day event (task 12: "from 4 to 26 January", with no hours):

const events = [
  { id: 'phase-4', title: 'Structural frame', start: '2026-11-25', end: '2026-12-22', allDay: true, resource: 'crew-2' },
];

<EventTimelinePremium events={events} eventCreation={{ duration: 7 * 24 * 60 }} preset="dayAndWeek" />

What happened

The creation dialog opens with a timed event. Its start time comes from where the pointer was inside the day: 10 Dec 05:30 to 17 Dec 05:30. Saved as it is, the plan gets one phase with hours among phases that have none.

eventCreation takes duration, interaction and canHaveMultipleResources. Nothing makes new events all-day, so the user has to switch every new phase to all-day in the dialog.

To get it working, the app rewrites the new event in onEventsChange: it keeps the days, drops the times and sets allDay: true. The dialog still shows the times before saving.

What I expected

An option to create all-day events, for example eventCreation={{ allDay: true }}, with duration then counted in whole days.

Plans made of whole days are a common use of a timeline: construction phases, project tasks, holidays, bookings by night.

Context

@mui/x-license@9.19.0 (construction)
@mui/x-scheduler-premium@9.0.0-beta.17 (construction)

Activity

  1. added
    on hold
    type: enhancement
    scope: scheduler
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    on holdscope: schedulertype: enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions