mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-02 10:50:15 +01:00
This commit is contained in:
parent
1d37134df2
commit
07553bbc35
4 changed files with 5 additions and 5 deletions
|
|
@ -179,7 +179,7 @@ export const setColOption = (protyle: IProtyle, data: IAV, target: HTMLElement,
|
|||
}
|
||||
});
|
||||
const oldScroll = menuElement.querySelector(".b3-menu__items").scrollTop;
|
||||
const selectedElement = menuElement.querySelector(".b3-chips")
|
||||
const selectedElement = menuElement.querySelector(".b3-chips");
|
||||
const oldChipsHeight = selectedElement ? selectedElement.clientHeight : 0;
|
||||
if (!cellElements) {
|
||||
menuElement.innerHTML = getEditHTML({protyle, data, colId, isCustomAttr});
|
||||
|
|
@ -259,7 +259,7 @@ export const setColOption = (protyle: IProtyle, data: IAV, target: HTMLElement,
|
|||
}
|
||||
});
|
||||
const oldScroll = menuElement.querySelector(".b3-menu__items").scrollTop;
|
||||
const selectedElement = menuElement.querySelector(".b3-chips")
|
||||
const selectedElement = menuElement.querySelector(".b3-chips");
|
||||
const oldChipsHeight = selectedElement?selectedElement.clientHeight:0;
|
||||
if (!cellElements) {
|
||||
menuElement.innerHTML = getEditHTML({protyle, data, colId, isCustomAttr});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue