Browse Source

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

Vanessa 2 years ago
parent
commit
847ac4090d
1 changed files with 3 additions and 4 deletions
  1. 3 4
      app/src/protyle/header/Title.ts

+ 3 - 4
app/src/protyle/header/Title.ts

@@ -67,10 +67,9 @@ export class Title {
             this.rename(protyle);
         });
         this.editElement.addEventListener("drop", (event: DragEvent) => {
-            if (event.dataTransfer.getData(Constants.SIYUAN_DROP_EDITOR)) {
-                event.stopPropagation();
-                event.preventDefault();
-            }
+            // https://ld246.com/article/1661911210429
+            event.stopPropagation();
+            event.preventDefault();
         });
         this.editElement.addEventListener("keydown", (event: KeyboardEvent) => {
             if (event.isComposing) {