MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / handlePropertyChange

Function handlePropertyChange

code/new-context-api/public/app.js:4137–4144  ·  view source on GitHub ↗

* (For IE <=9) Handles a propertychange event, sending a `change` event if * the value of the active element has changed.

(nativeEvent)

Source from the content-addressed store, hash-verified

4135 * the value of the active element has changed.
4136 */
4137function handlePropertyChange(nativeEvent) {
4138 if (nativeEvent.propertyName !== 'value') {
4139 return;
4140 }
4141 if (getInstIfValueChanged(activeElementInst)) {
4142 manualDispatchChangeEvent(nativeEvent);
4143 }
4144}
4145
4146function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) {
4147 if (topLevelType === 'topFocus') {

Callers

nothing calls this directly

Calls 2

getInstIfValueChangedFunction · 0.70

Tested by

no test coverage detected