Skip to content

Moving or swapping preserves initialValues #63

Open
@shulcsm

Description

@shulcsm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions