T
T
TchernyavskyDaniil2018-02-12 15:21:43
JavaScript
TchernyavskyDaniil, 2018-02-12 15:21:43

Why doesn't the click change the color of the last input?

Good afternoon. I need your help. Can you please tell me why in this case the last input does not change color?
We click to submit the form - 2 invalid fields. We rule, for example, one - the color has become normal (gray, red has been removed). We edit one more - the color remains, but when you click again, the color becomes normal and the form is sent. What's the catch? Please tell me at least how to debug it.
As if it eats a click in the latter case and two clicks are obtained as one
https://codepen.io/anon/pen/rJmGgr

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question