mardi 4 février 2020

OnChange not firing after "checked" changes in CheckBox

OnChange not getting triggered after "checked" changes in CheckBox in reactJs. This happens in my frontend

<Checkbox name="city" 
checked = {this.props.checked} 
onClick = {this.onclick.bind(this)} 
onChange = {this.onClickTab.bind(this)}>
City 
</Checkbox>

The checked changes fine. But how can I trigger "onChange" once that happens. Plz help




Aucun commentaire:

Enregistrer un commentaire