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
- Create an element with slots(e.g.
Stack
) - Insert an element and copy it, behaves normally
- Refreshing the page and copying it again will result in two elements with the same id, which will cause the page to crash
What is expected?
When copied again, the same id should not appear