MCPcopy Create free account
hub / github.com/GrapesJS/react / stop

Function stop

packages/grapesjs-react/src/utils/dom.ts:7–7  ·  view source on GitHub ↗
(ev?: Event)

Source from the content-addressed store, hash-verified

5export const prevent = (ev?: Event) => ev?.preventDefault();
6
7export const stop = (ev?: Event) => ev?.stopPropagation();
8
9export const loadStyle = async (href: string) => {
10 const link = document.createElement('link');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected