MCPcopy Create free account
hub / github.com/angular/angular / preventDefault

Function preventDefault

packages/core/primitives/event-dispatch/src/event.ts:111–113  ·  view source on GitHub ↗
(e: Event)

Source from the content-addressed store, hash-verified

109 * @param e The event to prevent the default action for.
110 */
111export function preventDefault(e: Event) {
112 e.preventDefault ? e.preventDefault() : (e.returnValue = false);
113}
114
115/**
116 * Gets the target Element of the event. In Firefox, a text node may appear as

Callers

nothing calls this directly

Calls 1

preventDefaultMethod · 0.45

Tested by

no test coverage detected