grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

BUG (v0.16.41): the duplicate icon from the icon toolbar is modifying the original element too

Open marcepoblet opened this issue 5 years ago • 6 comments

Version: v0.16.41

Are you able to reproduce the bug from the demo?

[ ] Yes

What is the expected behavior? The elements duplicated not should be impact the changes in the original element.

Describe the bug detailed steps:

  • select an element (text, image, etc)
  • click on the duplicate icon from the toolbar
  • modify the new element duplicated
  • the original element is modified too

https://user-images.githubusercontent.com/64096863/109187944-27f04680-7771-11eb-8ba4-1181ed56b08f.mp4

What is the current behavior? when some elements are duplicated, and the element duplicated is modified, the original element is modified too.

Are you able to attach screenshots, screencasts or a live demo?

[ ] Yes (attached a video)

marcepoblet avatar Feb 25 '21 16:02 marcepoblet

Regression issue since "grapesjs": "0.16.34"

aadilmehrajbhat avatar Mar 01 '21 17:03 aadilmehrajbhat

@artf any fix or walk around for this? Also experiencing this.

ebereonyechere avatar Mar 02 '21 10:03 ebereonyechere

Also wondering how to solve this. That's really annoying

mmotov avatar Mar 02 '21 11:03 mmotov

Thanks for the report guys, I'm aware of the bug and it's already fixed in dev. I've just totally forgot to release it 😬 I'll try to release it today

artf avatar Mar 02 '21 11:03 artf

Should be fixed here https://github.com/artf/grapesjs/releases/tag/v0.16.44

artf avatar Mar 04 '21 00:03 artf

@artf Thanks a lot! you saved me a lot of work _ I was trying to debug this issue all this entire afternoon... then for casuality I've realized, checking npm that the 0.16.44 version was out...

You saved man. Thank a lot! Donation, you deserve it all! ❤️

devtechk avatar Mar 04 '21 17:03 devtechk