-
Notifications
You must be signed in to change notification settings - Fork 8
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
Recursive calculation causing input problems #28
Comments
Thank you for the information, I appreciate it greatly |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a simple task, I have 2 dropdowns.
When I select A in one, I want B to show in the other, and vice versa. However, this is not possible to do in the demo website itself:
When initially setting the value of the first dropdown to A, the second one becomes B. When modifying the second dropdown to either A or B, it works as expected.
However the first dropdown is not possible to change on it's own, and it doesn't change the value of the second dropdown. By logging the form.data in console I can see it's trying to change it, but the logic is recursively calling itself to the point where it's overriding the input. I can't differentiate the input attempts using anything the form parameter passes me.
I also tried this using the onChange function, but I can't get the data of the second input box directly, and I have about ~50 rows of these inputs to make, which makes individually coding them a hassle.
Is there any solution available?
Here's my form data:
The text was updated successfully, but these errors were encountered: