diff --git a/src/plugins/album-actions/index.ts b/src/plugins/album-actions/index.ts index 1542332a40..fb2950dcb3 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);