smartxworks/sunmao-ui

Copying the same element after refreshing the page will result in the same id

xzdry opened this issue · 0 comments

xzdry commented

Version
@sunmao-ui/runtime: "^0.8.0",
@sunmao-ui/editor: "^0.8.0",

Steps to reproduce

  1. Create an element with slots(e.g. Stack)
  2. Insert an element and copy it, behaves normally
  3. Refreshing the page and copying it again will result in two elements with the same id, which will cause the page to crash
    copy_bug

What is expected?
When copied again, the same id should not appear