This commit is contained in:
Vanessa 2023-02-20 09:16:54 +08:00
parent 5fa5ae78dd
commit c248faed49
2 changed files with 18 additions and 10 deletions

View file

@ -62,12 +62,10 @@ export class Gutter {
protyle.wysiwyg.element.innerHTML);
});
this.element.addEventListener("dragend", () => {
if (window.siyuan.dragElement) {
this.element.querySelectorAll("button").forEach((item) => {
item.style.opacity = "";
});
window.siyuan.dragElement = undefined;
}
this.element.querySelectorAll("button").forEach((item) => {
item.style.opacity = "";
});
window.siyuan.dragElement = undefined;
});
this.element.addEventListener("click", (event: MouseEvent & { target: HTMLInputElement }) => {
const buttonElement = hasClosestByTag(event.target, "BUTTON");