mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-11 01:02:01 +03:00
replaceChildren instead of innerHTML clear in renderTotal
This commit is contained in:
parent
a992f6d79a
commit
d263976248
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue