fix(album-actions): Fixed #2312 (#2676)

* Fixed #2312

* Update src/plugins/album-actions/index.ts

Co-authored-by: JellyBrick <shlee1503@naver.com>

---------

Co-authored-by: JellyBrick <shlee1503@naver.com>
This commit is contained in:
Joel Carlos
2024-12-06 11:10:10 +08:00
committed by GitHub
parent e7de30c629
commit 0faad538f3

View File

@ -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);