React Scheduler > Does onEventClick stop event propagation
Asked by Andy
11 months ago.
Hello,
Does `onEventClick` internally stop event propagation?
Answer posted by Dan Letecky [DayPilot]
11 months ago.
Comment posted by Andy
11 months ago.
Thank you. Is there a way to optionally prevent it from stopping propagation?
Comment posted by Dan Letecky [DayPilot]
11 months 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
11 months ago.
This question is more than 1 month old and has been closed. Please create a new question if you have anything to add.