This commit is contained in:
Vanessa 2024-04-07 10:43:56 +08:00
parent 406281bb12
commit 3c5749f48f
2 changed files with 14 additions and 6 deletions

View file

@ -887,7 +887,11 @@ export const openMenuPanel = (options: {
event.stopPropagation();
break;
} else if (type === "goSearchRollupCalc") {
openCalcMenu(options.protyle, target, {data, colId: options.colId, blockID});
openCalcMenu(options.protyle, target, {
data,
colId: options.colId || menuElement.querySelector(".b3-menu__item").getAttribute("data-col-id"),
blockID
});
event.preventDefault();
event.stopPropagation();
break;