0
I have the following code:
handleChange(event, module) {
this.state[module][event.target.name] = event.target.value
this.forceUpdate();
}
render() {
const handleChange = (event, module) => {
this.handleChange(event, module);
}
return (
<form ref="steps" action="#" className="wizard-big" id="paymentForm">
<FormGroup>
<ControlLabel htmlFor="bank_account_agency">Agência</ControlLabel>
<FormControl name="bank_account_agency" id="bank_account_agency" type="text" value={this.state.bank.bank_account_agency} onChange={(event) => handleChange(event, "bank")} required />
</FormGroup>
<FormGroup>
<ControlLabel htmlFor="bank_account_number">Conta</ControlLabel>
<FormControl name="bank_account_number" id="bank_account_number" type="text" value={this.state.bank.bank_account_number} onChange={(event) => handleChange(event, "bank")} required />
</FormGroup>
</form>
);
}
The onChange
is not shot at any input
within the form
, I tested out of it and everything worked perfectly. I am using the library jQuery Steps and I think that’s the problem, but I can’t find the reason for the mistake.