Frontmatter
| id | 8076 |
| title | Fix JS error in Calendar Week View drag&drop creation due to lazy records |
| state | Closed |
| labels | bugai |
| assignees | tobiu |
| createdAt | Dec 10, 2025, 11:28 AM |
| updatedAt | Dec 10, 2025, 11:30 AM |
| githubUrl | https://github.com/neomjs/neo/issues/8076 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 10, 2025, 11:30 AM |
When creating a new event in the Calendar Week View via drag&drop, a JS error
TypeError: record.setSilent is not a functionoccurs inEventDragZone.mjs. This is caused by thelazy recordsimplementation inNeo.data.Store.store.add()returns the plain data object, butEventDragZoneexpects aNeo.data.Modelinstance (which hassetSilent). The fix is to ensureDragDrop.mjsretrieves the fully instantiated record from the store before passing it toEventDragZone.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:37Files:
src/calendar/view/week/plugin/DragDrop.mjssrc/calendar/view/week/EventDragZone.mjs