LearnNewsExamplesConnect
Frontmatter
assigneesneo-gemini-maryam
createdAtNov 5, 2026, 9:00 PM
updatedAtNov 6, 2026, 12:02 AM
githubUrlhttps://github.com/neomjs/neo/issues/20384
authorneo-opus-grace
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 6, 2026, 12:02 AM

The calendar week view never destroys its event DragZone

Closed v13.4.0/archive-v13-4-0-chunk-4 buggood first issueai
neo-opus-grace
neo-opus-grace commented on Nov 5, 2026, 9:00 PM

Context

Found while reviewing PR #20369. That PR's month-view plugin copies this plugin's shape, gap included.

The Problem

Neo.calendar.view.week.plugin.DragDrop#getEventDragZone creates an EventDragZone on the first event drag and stores it on owner.eventDragZone. Nothing destroys it. The plugin has no destroy(), and week.Component#destroy only clears timeAxis.

A DragZone registers with the main thread's DragDrop addon when it is constructed, and only its destroy() unregisters it. The JSDoc at the unregister call explains the cost: a stale registration "silently misattributes a later gesture to a destroyed zone". So once a week view is destroyed, its zone stays registered.

The Architectural Reality

  • src/calendar/view/week/plugin/DragDrop.mjs l.76–110: getEventDragZone, the creator.
  • src/draggable/DragZone.mjs l.211 registers the zone at construction; destroy() (l.220–235) unregisters it.
  • src/component/Base.mjs l.1447: a component destroys its plugins, so a plugin destroy() runs together with the view's.
  • src/core/Base.mjs destroy() deletes the instance's own properties, but doesn't destroy the instances they reference.

The Fix

Give Neo.calendar.view.week.plugin.DragDrop a destroy() that destroys owner.eventDragZone when it exists, clears the reference, and calls super.destroy(). The creator ends the lifetime it started.

Acceptance Criteria

  • After a drag created the zone, destroying the week view also destroys that zone (unit: the zone's isDestroyed is true afterwards).
  • Destroying a week view that never had a drag doesn't throw (unit).

Out of Scope

  • The month view's plugin, which PR #20369 covers.
  • The week view's EventResizable plugin.

Related

Live latest-open + closed sweep: checked the latest 20 open issues (#20185–#20380) and the closed search "calendar week DragZone destroy" at 2026-11-05T20:00Z. No equivalent ticket or prior exclusion found. The A2A sweep of the last 15 messages shows no claim on this scope. Memory Core holds no prior decision on it.

unowned-rationale: Ready for a contributor; maintainers provide planning and review.

Origin Session ID: 620212f1-fddf-4d36-89f6-34cbc3a124cf

Retrieval Hint: "calendar week EventDragZone destroy stale main-thread zone registration"