MCPcopy Create free account
hub / github.com/microsoft/SandDance / shouldUseChangeEvent

Function shouldUseChangeEvent

docs/external/js/react-dom.development.js:9217–9220  ·  view source on GitHub ↗

* SECTION: handle `change` event

(elem)

Source from the content-addressed store, hash-verified

9215 */
9216
9217 function shouldUseChangeEvent(elem) {
9218 var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
9219 return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
9220 }
9221
9222 function manualDispatchChangeEvent(nativeEvent) {
9223 var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent)); // If change and propertychange bubbled, we'd just bind to it like all the

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected