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

inlineEdit is not accessible from originalEvent after updating daypilot from 2019 to 2021

Asked by Sanjana Sharma
2 years ago.

Hi Team,
I am updating DayPilot from 2019 to 2021.
In 2019 args.originalEvent.inlineEdit was working fine but after updating to 2021, I am getting error that Property 'inlineEdit' does not exist on type 'MouseEvent'

Any idea about this ?

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

In older DayPilot versions (including 2019 versions), the event handler object (args) was not typed (type any).

The args.originalEvent holds a MouseEvent object (unmodified event object from the click handler) and "inlineEdit" property is not a valid property:
https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent

I recommend reviewing your code to make sure that what you do (extend args.originalEvent with custom properties) is intentional. If so, you can cast it to "any" so you can access this property.

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