search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Uncaught TypeError: Cannot read property 'args' of null at HTMLDocument.e.gMouseUp

Asked by Cezar
5 years ago.

I have a problem with the newest version of DayPilot Pro for ASP.NET MVC.

Calendar TimeRangeSelectedHandling doesn't work, I get error in Chrome's console:

Uncaught TypeError: Cannot read property 'args' of null at HTMLDocument.e.gMouseUp daypilot-all.min.js:18

How to fix this?

My calendar code which worked with the version from November 2016

@Html.DayPilotCalendar("dp_day", new DayPilotCalendarConfig
BackendUrl = Url.Action("DayPlan", "Calendar"),
ViewType = DayPilot.Web.Mvc.Enums.Calendar.ViewType.Day,
ColumnMarginRight = 100,
TimeFormat = DayPilot.Web.Mvc.Enums.TimeFormat.Clock24Hours,
CellDuration = 15,
TimeHeaderCellDuration = 60,
HourWidth = 60,
BusinessBeginsHour = 7,
BusinessEndsHour = 24,
HideFreeCells = true,
ContextMenu = "me",
EventBubble = "bubble",
TapAndHoldTimeout = 1000,
EventTapAndHoldHandling = DayPilot.Web.Mvc.Enums.Calendar.EventTapAndHoldHandlingEnum.ContextMenu,
TimeRangeSelectedHandling = DayPilot.Web.Mvc.Events.Calendar.TimeRangeSelectedHandlingType.JavaScript,
TimeRangeSelectedJavaScript = "create(start, end)"

Comment posted by Cezar
5 years ago.

It worked on single click, now I need to click, hold and slightly move cursor.

Comment posted by Matt
5 years ago.

this is evident on DayPilots own Calendar demo site.

Answer posted by Dan Letecky [DayPilot]
5 years ago.

This problem is fixed now in the latest sandbox build (8.4.5897):

A new release will be available in a couple of days.

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.