From 9f7c8c126573953bc7ec023a529b4c9b34e5c585 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 7 Aug 2024 22:57:43 +0800 Subject: [PATCH] :bug: https://github.com/siyuan-note/siyuan/issues/11098 --- app/src/protyle/render/av/action.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts index cea97fbf117..e91319d8813 100644 --- a/app/src/protyle/render/av/action.ts +++ b/app/src/protyle/render/av/action.ts @@ -91,10 +91,9 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEle searchElement.style.width = "128px"; searchElement.style.paddingLeft = ""; searchElement.style.paddingRight = ""; - searchElement.value = "t"; - // setTimeout(() => { - // searchElement.focus(); - // }, Constants.TIMEOUT_TRANSITION); + setTimeout(() => { + searchElement.focus(); + }, Constants.TIMEOUT_TRANSITION); event.preventDefault(); event.stopPropagation(); return true;