From 8d1c0517ceb870b38fb7c5a8c63a2e1023109760 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 21 Feb 2025 04:11:32 +0100 Subject: fix broken collapsing of accounts --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 1e87f40..d67f69b 100644 --- a/app.js +++ b/app.js @@ -177,9 +177,9 @@ let DayDigest = { return m("details.acct", {key: user}, [ m("summary.acct__header", { onclick: (ev) => { - // Don't jump around when closing an acount which we see + // Don't jump around when closing an account which we see // only due to position:sticky; - let el = ev.target.parentElement; + let el = ev.currentTarget.parentElement; let el_y = el.getBoundingClientRect().top; if (el_y < 0) { window.scrollTo(window.scrollX, window.scrollY + el_y); -- cgit v1.2.3