Parcourir la source

fix: prompt editor variable picker (#3177)

zxhlyh il y a 1 an
Parent
commit
b7691f5658

+ 1 - 1
web/app/components/base/prompt-editor/plugins/on-blur-or-focus-block.tsx

@@ -40,7 +40,7 @@ const OnBlurBlock: FC<OnBlurBlockProps> = ({
         () => {
           ref.current = setTimeout(() => {
             editor.dispatchCommand(KEY_ESCAPE_COMMAND, new KeyboardEvent('keydown', { key: 'Escape' }))
-          }, 100)
+          }, 200)
 
           if (onBlur)
             onBlur()