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

React Scheduler > Does onEventClick stop event propagation

Asked by Andy
2 days ago.

Hello,

Does `onEventClick` internally stop event propagation?

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

Yes, it does.

Comment posted by Andy
2 days ago.

Thank you. Is there a way to optionally prevent it from stopping propagation?

Comment posted by Dan Letecky [DayPilot]
2 days ago.

Unfortunately not, because it’s necessary for the internal logic.

However, you can add a global handler that fires in the capturing phase (before):

document.addEventListener('mousedown', (ev) => {
  console.log("global mousedown, capture");
}, { capture: true });
Comment posted by Andy
2 days ago.

Sounds good, thanks!

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