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

Fixed issues with nested array functions being copied incorrectly #60

Closed
wants to merge 3 commits into from

Conversation

benhamiltonpro
Copy link

PR to fix related issues to #49 and #51

I am currently moving items around where two objects have different properties with the nested change, blur, focus functions. When they get moved, the function just gets deleted because it is trying to pull the function reference from the destination and not the source.

I fixed the tests that were making an incorrect assumption about what the function should be when an item is moved. If you move an item from 0 to 1 then the function now in spot 1 should be the function that was in spot 0 not what was in spot 1. See moveFieldState.js new comment for more details.

@codecov
Copy link

codecov bot commented Oct 22, 2020

Codecov Report

Merging #60 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #60   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           15        15           
  Lines          165       165           
  Branches        36        36           
=========================================
  Hits           165       165           
Impacted Files Coverage Δ
src/swap.js 100.00% <ø> (ø)
src/moveFieldState.js 100.00% <100.00%> (ø)
src/remove.js 100.00% <100.00%> (ø)
src/removeBatch.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4a65647...feeb33c. Read the comment docs.

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

Successfully merging this pull request may close these issues.

1 participant