luqin / react-icheck

:radio_button: iCheck components built with React. Highly customizable checkbox, radio buttons and radio group.
https://luqin.github.io/react-icheck
177 stars 40 forks source link

Set correct target for onChange callback when label is not used #27

Closed jooj123 closed 8 years ago

jooj123 commented 8 years ago

Makes sure you can use the checkbox event (eg. to access event.target.value) in the onChange callback when you dont use the label prop.

Ensures that the checkbox is the target and not the <ins /> element

jesstelford commented 8 years ago

LGTM! :+1: