You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I managed to make a simple workaround borrowing from @dekhanov example. I think it can be made better though I still find it readable. Here is the demo.
This came with the inspiration of this blog. Credits to Erik Rasmussen for explaining the mutator concept to detail.
Hi, @HawiCaesar! I,m afraid that what you have implemented is a swap mutator, not move.
There is no difference between them in the case of two elements, but it will not work correctly if the number of elements more then two.
Bug report
What is the current behavior?
field.move
causes an error at the getValidators function when applied to two objects with different fieldsSee the demo: https://codesandbox.io/s/x94j811oj4
Click a
swap
buttonWhat is the expected behavior?
To swap objects with no error
What's your environment?
See the CodeSandBox link
The text was updated successfully, but these errors were encountered: