MCPcopy Index your code
hub / github.com/microsoft/SandDance / initWrapperState$1

Function initWrapperState$1

docs/external/js/react-dom.development.js:2383–2401  ·  view source on GitHub ↗
(element, props)

Source from the content-addressed store, hash-verified

2381 });
2382 }
2383 function initWrapperState$1(element, props) {
2384 var node = element;
2385
2386 {
2387 checkSelectPropTypes(props);
2388 }
2389
2390 node._wrapperState = {
2391 wasMultiple: !!props.multiple
2392 };
2393
2394 {
2395 if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
2396 error('Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components');
2397
2398 didWarnValueDefaultValue$1 = true;
2399 }
2400 }
2401 }
2402 function postMountWrapper$2(element, props) {
2403 var node = element;
2404 node.multiple = !!props.multiple;

Callers 2

setInitialPropertiesFunction · 0.85
diffHydratedPropertiesFunction · 0.85

Calls 2

checkSelectPropTypesFunction · 0.85
errorFunction · 0.70

Tested by

no test coverage detected