LearnNewsExamplesServices
Frontmatter
id8076
titleFix JS error in Calendar Week View drag&drop creation due to lazy records
stateClosed
labels
bugai
assigneestobiu
createdAtDec 10, 2025, 11:28 AM
updatedAtDec 10, 2025, 11:30 AM
githubUrlhttps://github.com/neomjs/neo/issues/8076
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 10, 2025, 11:30 AM

Fix JS error in Calendar Week View drag&drop creation due to lazy records

Closed v11.17.0 bugai
tobiu
tobiu commented on Dec 10, 2025, 11:28 AM

When creating a new event in the Calendar Week View via drag&drop, a JS error TypeError: record.setSilent is not a function occurs in EventDragZone.mjs. This is caused by the lazy records implementation in Neo.data.Store. store.add() returns the plain data object, but EventDragZone expects a Neo.data.Model instance (which has setSilent). The fix is to ensure DragDrop.mjs retrieves the fully instantiated record from the store before passing it to EventDragZone.

Error:

EventDragZone.mjs:243 Uncaught (in promise) TypeError: record.setSilent is not a function
    at EventDragZone.dragEnd (EventDragZone.mjs:243:16)
    at DragDrop.mjs:158:37

Files:

  • src/calendar/view/week/plugin/DragDrop.mjs
  • src/calendar/view/week/EventDragZone.mjs
tobiu added the bug label on Dec 10, 2025, 11:28 AM
tobiu added the ai label on Dec 10, 2025, 11:28 AM
tobiu assigned to @tobiu on Dec 10, 2025, 11:29 AM
tobiu referenced in commit 31ee331 - "Fix JS error in Calendar Week View drag&drop creation due to lazy records #8076" on Dec 10, 2025, 11:30 AM
tobiu closed this issue on Dec 10, 2025, 11:30 AM