MCPcopy Create free account
hub / github.com/Lobos/react-ui / shouldUseChangeEvent

Function shouldUseChangeEvent

docs/lib/react.js:929–932  ·  view source on GitHub ↗

* SECTION: handle `change` event

(elem)

Source from the content-addressed store, hash-verified

927 * SECTION: handle `change` event
928 */
929function shouldUseChangeEvent(elem) {
930 var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
931 return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
932}
933
934var doesChangeEventBubble = false;
935if (ExecutionEnvironment.canUseDOM) {

Callers 1

react.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…