Skip to content

Commit 9278479

Browse files
save file
1 parent d59d9aa commit 9278479

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/editors/html/auto-save/v2.0/auto-save-v2.0.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,10 @@
103103
var content = [...host.shadowRoot.childNodes];
104104

105105
const parent = host.parentNode;
106+
var host2=host.cloneNode(true);
106107
const next = host.nextSibling;
107108
parent.removeChild(host);
108-
parent.insertBefore(host, next);
109+
parent.insertBefore(host2, next);
109110

110111
var shadow = host.attachShadow({mode:'open',customElements:{}});
111112
shadow.append(...content);

0 commit comments

Comments
 (0)