Skip to content

eventModifier

Functions that modifiy the properties of DOM events.

They are chainable.

Type Aliases

EventModifier()<E>

type EventModifier<E>: (e) => E;

Type Parameters

E extends Event = Event

Parameters

e: E

Returns

E

Defined in

tmp/commons/src/lib/utils/eventModifier.ts:8

Functions

preventDefault()

function preventDefault(e): Event

Parameters

e: Event

Returns

Event

Defined in

tmp/commons/src/lib/utils/eventModifier.ts:15


stopPropagation()

function stopPropagation(e): Event

Parameters

e: Event

Returns

Event

Defined in

tmp/commons/src/lib/utils/eventModifier.ts:10