aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Settings/Categories
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-04-18 09:14:37 +0000
committerFuwn <[email protected]>2026-04-18 09:14:37 +0000
commit71cb450cbdd92bbb1aaedc43e9d4eae1e5206234 (patch)
tree18635039a1f637113dd913fae8e985b0afbb896a /src/lib/Settings/Categories
parentfix(notification): clear auto-dismiss timer on component destroy (diff)
downloaddue.moe-71cb450cbdd92bbb1aaedc43e9d4eae1e5206234.tar.xz
due.moe-71cb450cbdd92bbb1aaedc43e9d4eae1e5206234.zip
fix(tooltip): remove body-appended tooltip node on destroy
LinkedTooltip appends its tooltip div directly to document.body in createTooltip and only removes it from hideTooltip. If the component was destroyed while the tooltip was visible (e.g. parent navigated mid-hover), the div leaked and stayed in the DOM forever. Add an onDestroy handler that clears the pending hide/debounce timers and, if the tooltip div is still parented to document.body, removes it. Guarding on parentNode avoids double-removal when hideTooltip has already run.
Diffstat (limited to 'src/lib/Settings/Categories')
0 files changed, 0 insertions, 0 deletions