* 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)
| 4468 | */ |
| 4469 | |
| 4470 | function getHostProps(element, props) { |
| 4471 | var node = element; |
| 4472 | var checked = props.checked; |
| 4473 | |
| 4474 | var hostProps = _assign({}, props, { |
| 4475 | defaultChecked: undefined, |
| 4476 | defaultValue: undefined, |
| 4477 | value: undefined, |
| 4478 | checked: checked != null ? checked : node._wrapperState.initialChecked |
| 4479 | }); |
| 4480 | |
| 4481 | return hostProps; |
| 4482 | } |
| 4483 | |
| 4484 | function initWrapperState(element, props) { |
| 4485 | { |
no outgoing calls
no test coverage detected