-
Notifications
You must be signed in to change notification settings - Fork 422
Closed
Labels
Description
I wrote a react component that looks like this:
<span>
<div className="checkbox">
<input
className="checkbox"
type="checkbox"
id={this.props.id}
defaultChecked={this.props.checked}
onChange={this.toggle}
/>
<label
forHtml={this.props.id}
>
{this.props.name}
</label>
</div>
</span>
onChange is never called.
When removing the checkbox class all works as expected.