Closed
Description
Nature of issue?
- Found a bug
Details about the bug:
- Web browser and version: Chrome 91.0.4472.77 (64-bit)
- I was not able to reproduce this behaviour on Firefox 89.0 (64-bit)
- Operating System: Windows 10
Steps to reproduce this bug:
- Step 1
- create a new file (
thecopy.js
)
- create a new file (
- Step 2
- copy all of the contents of
sketch.js
to this new file using:ctrl-a
,ctrl-c
,ctrl-v
- copy all of the contents of
- Step 3
- edit the original file (
sketch.js
) - The bug:
- changes made in the original file are reflected in the new file (
thecopy.js
)- the files have become linked somehow
- a simple refresh doesn't seem to clear this link
- sort of (this is tricky to track down, sometimes a couple of refreshes does clear)
- a "hard reload" seems to clear the link
- changes made in the original file are reflected in the new file (
- edit the original file (
Maybe somewhere along the line, instead of a true copy (deep), the file contents are just copied by reference (shallow).
I've encountered this bug a couple of times, when attempting to "save" existing work and create a new copy where I'm free to delete/change etc. Or when wanting to use one file as a template.