Vanessa 2026-01-30 11:51:29 +08:00
parent bf77d94870
commit c0c6cfb633

View file

@ -296,7 +296,7 @@ const afterRenderTable = (options: ITableOptions) => {
if (headerTransformElement) {
headerTransformElement.style.transform = options.resetData.headerTransform.transform;
}
} else if (editRect) {
} else if (editRect && options.protyle && !options.protyle.options.action.includes(Constants.CB_GET_HISTORY)) {
// 需等待渲染完,否则 getBoundingClientRect 错误 https://github.com/siyuan-note/siyuan/issues/13787
setTimeout(() => {
stickyRow(options.blockElement, editRect, "top");
@ -307,7 +307,7 @@ const afterRenderTable = (options: ITableOptions) => {
if (footerTransformElement) {
footerTransformElement.style.transform = options.resetData.footerTransform.transform;
}
} else if (editRect) {
} else if (editRect && options.protyle && !options.protyle.options.action.includes(Constants.CB_GET_HISTORY)) {
// 需等待渲染完,否则 getBoundingClientRect 错误 https://github.com/siyuan-note/siyuan/issues/13787
setTimeout(() => {
stickyRow(options.blockElement, editRect, "bottom");