/web/events/stop
stdStops propagation of the given event.
Type signature
(event: {
stopPropagation: () => void;
}) => boolean
Examples
const event = {
preventDefault: () =>
console.log("preventDefault"),
stopPropagation: () =>
console.log("stopPropagation"),
};
stop(event);
Try in REPL
Questions
- How to stop the propagation of an event?