MCPcopy
hub / github.com/react/react / dispatchEventOnNode

Function dispatchEventOnNode

packages/react-dom/src/__tests__/ReactDOMInput-test.js:31–33  ·  view source on GitHub ↗
(node, type)

Source from the content-addressed store, hash-verified

29 let assertConsoleErrorDev;
30
31 function dispatchEventOnNode(node, type) {
32 node.dispatchEvent(new Event(type, {bubbles: true, cancelable: true}));
33 }
34
35 function isValueDirty(node) {
36 // Return the "dirty value flag" as defined in the HTML spec. Cast to text

Callers 5

changeMethod · 0.85
stubFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected