From b7691f56585b6bcc96abc3f7cd5301927507267f Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Mon, 8 Apr 2024 23:53:09 +0800 Subject: [PATCH] fix: prompt editor variable picker (#3177) --- .../base/prompt-editor/plugins/on-blur-or-focus-block.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/base/prompt-editor/plugins/on-blur-or-focus-block.tsx b/web/app/components/base/prompt-editor/plugins/on-blur-or-focus-block.tsx index 173d29b1c..2e3adc15c 100644 --- a/web/app/components/base/prompt-editor/plugins/on-blur-or-focus-block.tsx +++ b/web/app/components/base/prompt-editor/plugins/on-blur-or-focus-block.tsx @@ -40,7 +40,7 @@ const OnBlurBlock: FC = ({ () => { ref.current = setTimeout(() => { editor.dispatchCommand(KEY_ESCAPE_COMMAND, new KeyboardEvent('keydown', { key: 'Escape' })) - }, 100) + }, 200) if (onBlur) onBlur()