Skip to content

[Maintenance] - Week View Event Edit/Delete Fix #3998

@cielbellerose

Description

@cielbellerose

Description

On the new calendar week view we can't edit/delete events.

When we click inside the tooltip popup (when hovering on an event), the click also registers on the week view grid behind it. Since the week view grid is higher up in the DOM, it receives the click event and thinks we're trying to create a new event, prioritizing opening the Add Event modal instead.

In pages/CalendarPage/CalendarWeekView.tsx, we want to stop propagation on mousedown (to stop add event from happening) when we are inside the event's popup tooltip

Testing

  • Clicking Edit on an event opens the Edit modal.
  • Clicking Delete on an event opens the Delete confirmation modal.
  • Clicking an empty time slot still opens the Add Event modal.
  • Click-and-drag on an empty time slot still triggers drag-to-create.

Screenshots

Image

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions