Skip to content

fix(calendar): drag compact month chips instead of selecting days (#2641) - #2642

Merged
callumalpass merged 1 commit into
mainfrom
fix/2641-month-drag
Nov 20, 2026
Merged

callumalpass merged 1 commit into
mainfrom
fix/2641-month-drag

Conversation

@callumalpass

Copy link
Copy Markdown
Owner

Fixes #2641.

Cause. When the calendar is 850px wide or narrower, Month uses the compact chips display. Chips are indicator items with pointer-events: none, so a press on a task chip reached the day cell, the calendar started a date selection, and releasing opened the create menu. Week view and wider Month views draw normal items, so they were unaffected. Google Calendar and the reporter's calendarView options aren't involved: the calendar width alone triggers it, e.g. with a sidebar open.

Fix. CSS only (styles/bases-calendar.css): when the selected-day panel is off, chips take the pointer. The calendar library already handles moving indicator items, so chips can now be dragged, clicked to open the task and right-clicked for the task menu. With Show selected day panel on, chips keep ignoring the pointer, so pressing one still selects its day.

Tests. e2e/issues/issue-2641-month-view-drag.spec.ts drags an all-day and a timed task one day in Month at a chip-layout width. It fails without the fix (a date selection starts) and passes with it. I also checked click (opens the task) and right-click (shows the menu) by hand in the isolated e2e vault. npm run lint and scripts/calendar-css.test.mjs pass.

No overlap with #2633: that PR doesn't touch styles/bases-calendar.css.

…clicked (#2641)

At calendar widths up to 850px Month draws tasks as chips. The chips ignored
the pointer, so pressing one reached the day cell and a drag became a date
selection that opened the create menu. Without the selected-day panel the
chips now take the pointer, so the calendar moves, opens or shows the menu
for the task as in the wider layout.
@callumalpass
callumalpass merged commit b81a14e into main Nov 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Month view: dragging a task starts a date selection instead of moving it (Week view works)

1 participant