An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/insider/issues/1106
Vanessab72e67d378b1
diff --git a/app/src/protyle/render/av/select.ts b/app/src/protyle/render/av/select.tsindex 93b2b70c96..2786ffcf21 100644--- a/app/src/protyle/render/av/select.ts+++ b/app/src/protyle/render/av/select.ts@@ -331,23 +331,24 @@ export const bindSelectEvent = (protyle: IProtyle, data: IAV, menuElement: HTMLEif (!colData.options) {colData.options = [];}+ const listElement = menuElement.lastElementChild.lastElementChild as HTMLElementinputElement.addEventListener("input", (event: InputEvent) => {if (event.isComposing) {return;}- menuElement.lastElementChild.innerHTML = filterSelectHTML(inputElement.value, colData.options);+ listElement.innerHTML = filterSelectHTML(inputElement.value, colData.options);});inputElement.addEventListener("compositionend", (event: InputEvent) => {if (event.isComposing) {return;}- menuElement.lastElementChild.innerHTML = filterSelectHTML(inputElement.value, colData.options);+ listElement.innerHTML = filterSelectHTML(inputElement.value, colData.options);});inputElement.addEventListener("keydown", (event: KeyboardEvent) => {if (event.isComposing) {return;}- let currentElement = upDownHint(menuElement.lastElementChild, event, "b3-menu__item--current");+ let currentElement = upDownHint(listElement, event, "b3-menu__item--current");if (event.key === "Enter") {if (!currentElement) {currentElement = menuElement.querySelector(".b3-menu__item--current");