We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2ad2db commit 6b3aaeaCopy full SHA for 6b3aaea
public/client.js
@@ -146,12 +146,10 @@ export function open({hash} = {}) {
146
items.forEach((item) => {
147
switch (item.type) {
148
case "html":
149
- if (root.children.length === 0) {
150
- root.insertAdjacentHTML("beforeend", item.html);
151
- } else if (newPos < root.children.length) {
+ if (newPos < root.children.length) {
152
root.children[newPos].insertAdjacentHTML("beforebegin", item.html);
153
} else {
154
- root.lastElementChild.insertAdjacentHTML("afterend", item.html);
+ root.insertAdjacentHTML("beforeend", item.html);
155
}
156
++newPos;
157
item.cellIds.forEach((id) => {
0 commit comments