Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

Commit

Permalink
Checkbox onClick bug - moved attachEvents to input #920
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-martic-sociomantic committed Mar 6, 2019
1 parent 937f824 commit a032ad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Checkbox/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ const Checkbox = forwardRef( ( props, ref ) =>

return (
<div
{ ...attachEvents( props ) }
className = { cssMap.main }>
<input
{ ...attachEvents( props ) }
checked = { isChecked }
className = { cssMap.input }
defaultChecked = { isDefaultChecked }
Expand Down

0 comments on commit a032ad3

Please sign in to comment.