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

dblclick is not working after daypilot upgrade

Asked by Pooja Gupta
2 months ago.

After upgrading daypilot from 2019 to 2021, I found that when I am trying to add eventlistner, for 'dblclick', it is not working.
Code :-
const specialElement = doucment.getElementsByClassName('inline-edit-special')[0];
specialElement.addEventListener("dblclick", this.getDoubleListener(areaElement));

but double click is not working.

Answer posted by Dan Letecky [DayPilot]
1 month ago.

From your example it's not obvious what kind of element that is and where you add it (it is not part of the standard Scheduler structure).

Please note that the Scheduler parts are rendered progressively and custom HTML that you add might not be available in onAfterRender. Even if you are able to target the custom element in onAfterRender it may be re-rendered after certain changes (partial updates/scrolling).

New Reply
This reply is
Attachments:
or drop files here
Your name (optional):