mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
This commit is contained in:
parent
62298ca129
commit
fbf9ee09bb
1 changed files with 5 additions and 1 deletions
|
|
@ -343,7 +343,7 @@ export class Files extends Model {
|
|||
return;
|
||||
}
|
||||
const liElement = hasClosestByTag(event.target, "LI");
|
||||
if (!liElement || !window.siyuan.dragElement || liElement.classList.contains("b3-list-item--focus")) {
|
||||
if (!liElement || !window.siyuan.dragElement) {
|
||||
event.preventDefault();
|
||||
return;
|
||||
}
|
||||
|
|
@ -356,6 +356,10 @@ export class Files extends Model {
|
|||
event.preventDefault();
|
||||
return;
|
||||
}
|
||||
// 允许标题拖拽到文档树的选中文档上 https://github.com/siyuan-note/siyuan/issues/6552
|
||||
if (liElement.classList.contains("b3-list-item--focus")) {
|
||||
return;
|
||||
}
|
||||
let sourceOnlyRoot = true;
|
||||
Array.from(this.element.querySelectorAll(".b3-list-item--focus")).find((item: HTMLElement) => {
|
||||
if (item.getAttribute("data-type") === "navigation-file") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue