From d263976248117f75c976dfa602297f932c4400fd Mon Sep 17 00:00:00 2001 From: Horizontal42 <75383519+Horizontal42@users.noreply.github.com> Date: Wed, 12 Aug 2026 22:08:56 +0300 Subject: [PATCH] replaceChildren instead of innerHTML clear in renderTotal --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 5e2be4d..1e29759 100644 --- a/src/main.ts +++ b/src/main.ts @@ -655,7 +655,7 @@ function renderTotal(): void { } const total = engine.totalOf(results); if (total) { - line.innerHTML = ""; + line.replaceChildren(); const lbl = document.createElement("span"); lbl.className = "total-label"; lbl.textContent = label;