@tempots/dom
emitStopImmediatePropagation() function
Creates an event handler that stops immediate propagation of the event and invokes the provided function.
Signature:
emitStopImmediatePropagation: (fn: () => void) => (event: Event) => void
Parameters
Parameter |
Type |
Description |
---|---|---|
fn |
() => void |
The function to be invoked. |
Returns: (event: Event) => void
The event handler function.