-
Notifications
You must be signed in to change notification settings - Fork 47
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
Smart action hook previousValue wrongly set #1010
Comments
I have similar issues now but at one index further in the array. It's like if the schema wasn't updated and something triggers a change and then if I don't use the number input at a specific index the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
changedField.previousValue
should be properly set on the 'Number of values' field whatever the position of that field is (See context it will be more clear)Actual behavior
If my 'Number of values' number input field is not at the 4th position (index = 3) the hook previous value is always null and it seems that whatever the field that is at the 4th position in the array has it's previous value set instead of my number input
Failure Logs
None
Context
Please help this makes no sense to me. Also note that all fields before the prblematic one is not added or removed dynamically so that can't really change the position on 'Number of values' field
Smart action:
In that configuration ⬆️ I can't get the number input to work with adding value fields properly because the previous value is set on the wrong item in the fields array
But the position in the schema is right
Screen record of bad behavior (Number of values is 3rd in array -> index 2)
Screen record of good behavior (Number of values is 4th in array -> index 3)
The text was updated successfully, but these errors were encountered: