mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-16 14:05:58 +08:00
fix: prompt editor variable picker (#3177)
This commit is contained in:
parent
1382f10433
commit
b7691f5658
@ -40,7 +40,7 @@ const OnBlurBlock: FC<OnBlurBlockProps> = ({
|
|||||||
() => {
|
() => {
|
||||||
ref.current = setTimeout(() => {
|
ref.current = setTimeout(() => {
|
||||||
editor.dispatchCommand(KEY_ESCAPE_COMMAND, new KeyboardEvent('keydown', { key: 'Escape' }))
|
editor.dispatchCommand(KEY_ESCAPE_COMMAND, new KeyboardEvent('keydown', { key: 'Escape' }))
|
||||||
}, 100)
|
}, 200)
|
||||||
|
|
||||||
if (onBlur)
|
if (onBlur)
|
||||||
onBlur()
|
onBlur()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user