Submit Button Disabling
Closed this issue · 0 comments
monstaro commented
The submit button is set to enable once it registers that the state of its login component has all three values filled (username, email, trip type) . It does...sort of. It isn't until a second character is entered in the final field where the button enables, and when you delete all text in a field, it takes one extra keystroke to disable.
updateState
is fired onChange (also tried onKeyUp etc.) .
The submit button has a disabled property that is assigned to this.state.isButtonDisabled
I think the problem is for some reason the component isn't re rendering after updateState
runs.