mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-10 10:02:38 +03:00
Web REPL: ensure we only try to append to DOM Elements, not text nodes
This commit is contained in:
parent
a5a984ca45
commit
76a8a60547
@ -212,7 +212,7 @@ function updateHistoryEntry(index, ok, outputText) {
|
||||
outputElem.classList.add("output");
|
||||
outputElem.classList.add(ok ? "output-ok" : "output-error");
|
||||
|
||||
const historyItem = repl.elemHistory.childNodes[index];
|
||||
const historyItem = repl.elemHistory.children[index];
|
||||
historyItem.appendChild(outputElem);
|
||||
|
||||
repl.elemHistory.scrollTop = repl.elemHistory.scrollHeight;
|
||||
|
Loading…
Reference in New Issue
Block a user