checkbox
checkbox copied to clipboard
Label for custom css styling of checkbox
Using css to override styling of a checkbox requires a <label></label> as a sibling (same level, next element) to the <input type="checkbox" /> node.
Without using a label with the htmlFor attr, mouse clicks don't propagate to the checkbox input, and the handleChange() callback never fires.
I was unable to make the click events propagate using the existing <span className={${prefixCls}-inner} />