diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts index ce2fbb239..f3092aa89 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -1294,8 +1294,7 @@ export class Toolbar { `; const listElement = this.subElement.querySelector(".b3-list"); const previewElement = this.subElement.firstElementChild.lastElementChild; - let previewPath = listElement.firstElementChild.getAttribute("data-value"); - previewTemplate(previewPath, previewElement, protyle.block.parentID); + let previewPath: string listElement.addEventListener("mouseover", (event) => { const target = event.target as HTMLElement; const hoverItemElement = hasClosestByClassName(target, "b3-list-item"); @@ -1437,10 +1436,7 @@ export class Toolbar { `; }); - if (html === "") { - html = `