diff --git a/libs/builder/builder.js b/libs/builder/builder.js index 81e0e4e1..2d40252e 100644 --- a/libs/builder/builder.js +++ b/libs/builder/builder.js @@ -1466,6 +1466,9 @@ Vvveb.Builder = { node = node.get(0); + // Generate/Regenerate Id for element + node.id = node.id ? node.id + "_" + Math.floor(Math.random() * 90000) : node.tagName + "_" + Math.floor(Math.random() * 90000); + Vvveb.Undo.addMutation({type: 'childList', target: node.parentNode, addedNodes: [node],