Skip to content

[bug][Layers] Copy-pasting a layer unexpectedly duplicates it #1723

Open
@spartan-uyen

Description

@spartan-uyen

Describe the bug

Summary:
When copying and pasting a layer in a project, instead of pasting a single instance, two identical layers are created.

Step to reproduce:

  1. Create a blank project (with at least one element, such as a text element).
  2. Copy a layer (e.g., a structure like div > div > text).
  3. Paste the copied layer into the project.

Actual result:
Two identical layers are pasted into the project (e.g., div > div > text, div > div > text).

Please watch this video
https://github.com/user-attachments/assets/60185d0e-d0fa-4455-8930-8a64a703fa56

Expected result:
Only one instance of the copied layer should be pasted into the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions