瀏覽代碼

:bug: fix https://github.com/siyuan-note/siyuan/issues/11270

Vanessa 1 年之前
父節點
當前提交
b76c36b7b3
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/src/protyle/render/av/action.ts

+ 2 - 0
app/src/protyle/render/av/action.ts

@@ -167,6 +167,8 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEle
             protyle.toolbar.range = document.createRange();
             protyle.toolbar.range.selectNodeContents(target);
             focusByRange(protyle.toolbar.range);
+            target.parentElement.classList.add("av__cell--select");
+            addDragFill(target.parentElement);
             hintRef(target.previousElementSibling.textContent.trim(), protyle, "av");
             event.preventDefault();
             event.stopPropagation();