Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'length')

Hi there,

I’ve downloaded a trial of the Event Calendar and I’m just trying out all the features and customisations to ensure it will do exactly what I need before making a purchase.

Simply using it out of the box, the only properties I’ve added are 4 “calendars”. I’m getting the below error appear in the console randomly. If I highlight the text in “Event name” and the mouse ends up dragged over the calendar itself prompting the popup “You have unsaved changes…” This is sometimes the point when I get the console message. Sometimes it’s when I try to add a second event.

When this happens I can’t click anything and no key presses are registered.

An easy way to recreate the error is to Double Click the calendar to create an event or click " + Create Event", then whilst the right hand pane for adding an event is visible, click the + Create Event" button again. You will receive the “You have unsaved changes…” popup and see the error in the console and be unable to click anything.

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘length’)
at Object.p (event-calendar.js:12:196395)
at Object.p (event-calendar.js:12:197303)
at _i (event-calendar.js:12:134548)
at Di (event-calendar.js:12:134217)
p @ event-calendar.js:12
p @ event-calendar.js:12
_i @ event-calendar.js:12
Di @ event-calendar.js:12
Promise.then (async)
wi @ event-calendar.js:12
(anonymous) @ event-calendar.js:12
(anonymous) @ event-calendar.js:12
showModal @ event-calendar.js:12
L @ event-calendar.js:12
A @ event-calendar.js:12
(anonymous) @ event-calendar.js:12

Any help or suggestions would be greatly appreciated.

Thank you.


Sorry for the delayed reply, and thank you for reporting the issue!
The issue has been fixed in v2.0.1 What's new | DHTMLX Event Calendar Docs