From 0faad538f33d1faa21f6f8e6403a3e771ca437e7 Mon Sep 17 00:00:00 2001 From: Joel Carlos Date: Fri, 6 Dec 2024 11:10:10 +0800 Subject: [PATCH] fix(album-actions): Fixed #2312 (#2676) * Fixed #2312 * Update src/plugins/album-actions/index.ts Co-authored-by: JellyBrick --------- Co-authored-by: JellyBrick --- src/plugins/album-actions/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugins/album-actions/index.ts b/src/plugins/album-actions/index.ts index 1542332a..fb2950dc 100644 --- a/src/plugins/album-actions/index.ts +++ b/src/plugins/album-actions/index.ts @@ -133,9 +133,11 @@ export default createPlugin< } }, loadFullList(event: MouseEvent) { - if (event.currentTarget instanceof Element) { + if (event.target instanceof Element) { event.stopPropagation(); - const id = event.currentTarget.id; + const button = event.target.closest('button') as HTMLElement; + if (!button?.id) return; + const id = button.id; const loader = document.getElementById('continuations')!; this.loadObserver = new MutationObserver(() => { this.applyToList(id, loader);