* 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)
| 3792 | */ |
| 3793 | |
| 3794 | function getHostProps(element, props) { |
| 3795 | var node = element; |
| 3796 | var checked = props.checked; |
| 3797 | |
| 3798 | var hostProps = _assign({}, props, { |
| 3799 | defaultChecked: undefined, |
| 3800 | defaultValue: undefined, |
| 3801 | value: undefined, |
| 3802 | checked: checked != null ? checked : node._wrapperState.initialChecked |
| 3803 | }); |
| 3804 | |
| 3805 | return hostProps; |
| 3806 | } |
| 3807 | |
| 3808 | function initWrapperState(element, props) { |
| 3809 | { |
no outgoing calls
no test coverage detected