Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 有过滤条件,添加新行后,编辑单元格使其被过滤,tab 切换到日期后 enter 弹出的日期面板需隐藏

Vanessa13553081331a
diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.ts
index 1337166ae6..28c3f29212 100644
--- a/app/src/protyle/render/av/render.ts
+++ b/app/src/protyle/render/av/render.ts
@@ -325,18 +325,21 @@ ${cell.color ? `color:${cell.color};` : ""}">${renderCell(cell.value, rowIndex,
const newCellElement = e.querySelector(`.av__row[data-id="${selectCellId.split(Constants.ZWSP)[0]}"] .av__cell[data-col-id="${selectCellId.split(Constants.ZWSP)[1]}"]`);
if (newCellElement) {
newCellElement.classList.add("av__cell--select");
+ cellScrollIntoView(e, newCellElement);
}
const avMaskElement = document.querySelector(".av__mask");
+ const avPanelElement = document.querySelector(".av__panel");
if (avMaskElement) {
(avMaskElement.querySelector("textarea, input") as HTMLTextAreaElement)?.focus();
- } else if (!document.querySelector(".av__panel") && !isSearching && getSelection().rangeCount > 0) {
+ } else if (!avPanelElement && !isSearching && getSelection().rangeCount > 0) {
const range = getSelection().getRangeAt(0);
const blockElement = hasClosestBlock(range.startContainer);
if (blockElement && e.isSameNode(blockElement)) {
focusBlock(e);
}
+ } else if (avPanelElement && !newCellElement) {
+ avPanelElement.remove();
}
- cellScrollIntoView(e, newCellElement);
}
selectRowIds.forEach((selectRowId, index) => {
const rowElement = e.querySelector(`.av__row[data-id="${selectRowId}"]`) as HTMLElement;