diff options
-rw-r--r-- | app.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |