* Implements an host component that allows setting these optional * props: `checked`, `value`, `defaultChecked`, and `defaultValue`. * * If `checked` or `value` are not supplied (or null/undefined), user actions * that affect the checked state or value will trigger updates to the ele
(element, props)
| 5510 | |
| 5511 | |
| 5512 | function getHostProps(element, props) { |
| 5513 | var node = element; |
| 5514 | var checked = props.checked; |
| 5515 | |
| 5516 | var hostProps = _assign({}, props, { |
| 5517 | defaultChecked: undefined, |
| 5518 | defaultValue: undefined, |
| 5519 | value: undefined, |
| 5520 | checked: checked != null ? checked : node._wrapperState.initialChecked |
| 5521 | }); |
| 5522 | |
| 5523 | return hostProps; |
| 5524 | } |
| 5525 | function initWrapperState(element, props) { |
| 5526 | { |
| 5527 | ReactControlledValuePropTypes.checkPropTypes('input', props); |
no outgoing calls
no test coverage detected