replaceChildren instead of innerHTML clear in renderTotal

This commit is contained in:
Horizontal42 2026-08-12 22:08:56 +03:00
parent c7d3cc5493
commit f84de44bc2

View file

@ -655,7 +655,7 @@ function renderTotal(): void {
} }
const total = engine.totalOf(results); const total = engine.totalOf(results);
if (total) { if (total) {
line.innerHTML = ""; line.replaceChildren();
const lbl = document.createElement("span"); const lbl = document.createElement("span");
lbl.className = "total-label"; lbl.className = "total-label";
lbl.textContent = label; lbl.textContent = label;