| 106 | useFormValidation(props, validationState, ref); |
| 107 | |
| 108 | let onChange: ChangeEventHandler<HTMLInputElement> = e => { |
| 109 | // since we spread props on label, onChange will end up there as well as in here. |
| 110 | // so we have to stop propagation at the lowest level that we care about |
| 111 | e.stopPropagation(); |
| 112 | state.setSelected(getEventTarget(e).checked); |
| 113 | }; |
| 114 | |
| 115 | let hasChildren = children != null; |
| 116 | let hasAriaLabel = ariaLabel != null || ariaLabelledby != null; |
nothing calls this directly
no test coverage detected