mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
effaa31dce
commit
b8346b4649
2 changed files with 10 additions and 0 deletions
|
|
@ -357,6 +357,7 @@ export const openMenuPanel = (options: {
|
|||
avID,
|
||||
data: oldData,
|
||||
}]);
|
||||
const oldScroll = menuElement.querySelector(".b3-menu__items").scrollTop;
|
||||
if (options.cellElements) {
|
||||
menuElement.innerHTML = getSelectHTML(data.view, options.cellElements);
|
||||
bindSelectEvent(options.protyle, data, menuElement, options.cellElements, options.blockElement);
|
||||
|
|
@ -369,6 +370,7 @@ export const openMenuPanel = (options: {
|
|||
});
|
||||
bindEditEvent({protyle: options.protyle, data, menuElement, isCustomAttr, blockID});
|
||||
}
|
||||
menuElement.querySelector(".b3-menu__items").scrollTop = oldScroll;
|
||||
return;
|
||||
}
|
||||
if (targetElement.getAttribute("data-type") === "setRelationCell") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue