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

Function prevent

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

Source from the content-addressed store, hash-verified

3export const isString = (value: any): value is string => typeof value === 'string';
4
5export const prevent = (ev?: Event) => ev?.preventDefault();
6
7export const stop = (ev?: Event) => ev?.stopPropagation();
8

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected