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

Function handleControlledInputBlur

docs/external/js/react-dom.development.js:9370–9381  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

9368 }
9369
9370 function handleControlledInputBlur(node) {
9371 var state = node._wrapperState;
9372
9373 if (!state || !state.controlled || node.type !== 'number') {
9374 return;
9375 }
9376
9377 {
9378 // If controlled, assign the value attribute to the current value on blur
9379 setDefaultValue(node, 'number', node.value);
9380 }
9381 }
9382 /**
9383 * This plugin creates an `onChange` event that normalizes change events
9384 * across form elements. This event fires at a time when it's possible to

Callers 1

Calls 1

setDefaultValueFunction · 0.85

Tested by

no test coverage detected