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

Function getTargetInstForInputEvent

docs/lib/react.js:1086–1092  ·  view source on GitHub ↗

* If a `change` event should be fired, returns the target's ID.

(topLevelType, targetInst)

Source from the content-addressed store, hash-verified

1084 * If a `change` event should be fired, returns the target's ID.
1085 */
1086function getTargetInstForInputEvent(topLevelType, targetInst) {
1087 if (topLevelType === topLevelTypes.topInput) {
1088 // In modern browsers (i.e., not IE8 or IE9), the input event is exactly
1089 // what we want so fall through here and trigger an abstract event
1090 return targetInst;
1091 }
1092}
1093
1094function handleEventsForInputEventIE(topLevelType, target, targetInst) {
1095 if (topLevelType === topLevelTypes.topFocus) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…