This commit is contained in:
Vanessa 2024-04-19 11:20:11 +08:00
parent 6684c77120
commit 2008dcaff2
7 changed files with 18 additions and 24 deletions

View file

@ -390,7 +390,7 @@ export const openMenuPanel = (options: {
}
if (targetElement.getAttribute("data-type") === "editCol") {
const previousID = (targetElement.classList.contains("dragover__top") ? targetElement.previousElementSibling?.getAttribute("data-id") : targetElement.getAttribute("data-id")) || ""
const previousID = (targetElement.classList.contains("dragover__top") ? targetElement.previousElementSibling?.getAttribute("data-id") : targetElement.getAttribute("data-id")) || "";
const undoPreviousID = sourceElement.previousElementSibling?.getAttribute("data-id") || "";
if (previousID !== undoPreviousID && previousID !== sourceId) {
transaction(options.protyle, [{