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

Cut and paste breaks formula #294

Open
shm0x opened this issue Oct 20, 2023 · 4 comments
Open

Cut and paste breaks formula #294

shm0x opened this issue Oct 20, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@shm0x
Copy link

shm0x commented Oct 20, 2023

When we cut (Ctrl + X) and paste (Ctrl + V) some cell or range, it breaks all formulas using the cell/range reference.

Is there any solutions for that ?

Thanks.

@shm0x
Copy link
Author

shm0x commented Oct 20, 2023

Reproduction :

now B1 should display value of A1

  • click on A1, cut with CTRL + X
  • click on C1, paste with CTRL + V

A1 is now empty
C1 now contains previous A1 value,
B1 still contains =A1 and thus display nothing

B1 formula should be updated to be =C1
Is this normal behavior ? I think the reference should be updated when cut/pasting so formulas never breaks when moving cells like it does when moving row or column.

@hodeware
Copy link
Contributor

Copy and paste does not update references on Jspreadsheet although I believe that should be a feature request.

@hodeware hodeware added the enhancement New feature or request label Oct 20, 2023
@shm0x
Copy link
Author

shm0x commented Oct 20, 2023

For copy and paste, this is normal as we duplicate data, so references shouldn't change. I was talking about cut and paste, as cells move, then all references to thoses cells should be updated to avoid breaking formulas somewhere else.

@hodeware
Copy link
Contributor

This behavior will be part in the next release. Thanks for the suggestion

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

No branches or pull requests

2 participants