Vanessa 2025-03-14 19:16:26 +08:00
parent b5894597a7
commit 8af51b8592
2 changed files with 7 additions and 1 deletions

View file

@ -1189,6 +1189,8 @@ export const openMenuPanel = (options: {
event.stopPropagation();
break;
} else if (type === "addColOptionOrCell") {
menuElement.querySelector(".b3-menu__item--current")?.classList.remove("b3-menu__item--current");
target.classList.add("b3-menu__item--current");
if (target.querySelector(".b3-menu__checked")) {
removeCellOption(options.protyle, options.cellElements, menuElement.querySelector(`.b3-chips .b3-chip[data-content="${escapeAttr(target.dataset.name)}"]`), options.blockElement);
} else {