-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onValidationComplete sometimes errors when inputs are removed #267
Comments
Having this same problem. |
+1 |
1 similar comment
+1 |
+1 Seems to be a race condition. I have the following (mock) setup:
When the user clicks X to remove a work experience, work_exp[0].title is unmounted first and validateForm is run too soon and is trying to validate this.inputs["work_exp[0].skills[0]"] which also has been unmounted. The error is on this line: https://github.com/christianalfoni/formsy-react/blob/master/src/main.js#L373 Perhaps we want that line to be more defensive? |
Hi! The problem arises from the fact that the library is heavily dependent on the input names. I tried to get rid of it. See #275 |
@sdemjanenko @farisj @meikoudras @josercruz01 Hi! Could you test #275 on your code? If everything is fine, I will merge it. |
@Semigradsky: test still pass on #258 so all good 😄 |
@Semigradsky looks good! |
All good on my side as well @Semigradsky, thanks a lot for the fast response on this. |
Worked for me, thanks! |
Works nice! Thanks! When are you planning next release? |
The
inputKeys
points to keys that no longer exist inthis.inputs
.The text was updated successfully, but these errors were encountered: