I've tried using the editEvent() method, and it seems to crash unless I provide a model instance with a startDate/endDate. I'd like to be able to open up the editor dialogue with a blank record.
Example code to reproduce...
const [record] = calendar.eventStore.add({});
calendar.editEvent(record).then(
() => console.log('success'),
(e) => console.error(e)
);
The following is logged to the console...
TypeError: Cannot read properties of undefined (reading 'getTime')
at _DateHelper.betweenLesser (calendar.module.js:9:128452)
at _DateHelper.intersectSpans (calendar.module.js:9:128792)
at EventEdit2.doEditEvent (calendar.module.js:52:1235857)
at EventEdit2.editEvent (calendar.module.js:52:835363)
at functionChainRunner (calendar.module.js:9:246820)
at a.<computed> [as editEvent] (calendar.module.js:9:246444)