* 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 element
(element, props)
| 4341 | */ |
| 4342 | |
| 4343 | function getHostProps(element, props) { |
| 4344 | var node = element; |
| 4345 | var checked = props.checked; |
| 4346 | |
| 4347 | var hostProps = _assign({}, props, { |
| 4348 | defaultChecked: undefined, |
| 4349 | defaultValue: undefined, |
| 4350 | value: undefined, |
| 4351 | checked: checked != null ? checked : node._wrapperState.initialChecked |
| 4352 | }); |
| 4353 | |
| 4354 | return hostProps; |
| 4355 | } |
| 4356 | |
| 4357 | function initWrapperState(element, props) { |
| 4358 | { |
no outgoing calls
no test coverage detected