Skip to content
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

Moving or swapping preserves initialValues #63

Open
shulcsm opened this issue Dec 14, 2020 · 0 comments
Open

Moving or swapping preserves initialValues #63

shulcsm opened this issue Dec 14, 2020 · 0 comments

Comments

@shulcsm
Copy link

shulcsm commented Dec 14, 2020

I suspect this is by design but swapping rows moves values but keeps initialValues.
Change handlers get fired for moved rows and meta.dirty is set. Is there a way to avoid it it? From my point of view array is now dirty, but individual values should be kept clean.

I pondered writing a mutator that swaps/moves initialValues but it seems awkward especially if you want to move newly created rows, that have undefined initialValues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant