From 940c2faea1bc1c6143fd57c02c62678cc887e4c3 Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Thu, 20 Jun 2024 11:19:43 +0800 Subject: [PATCH] fix: prompt editor insert cursor position (#5415) --- .../base/prompt-editor/plugins/component-picker-block/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/base/prompt-editor/plugins/component-picker-block/index.tsx b/web/app/components/base/prompt-editor/plugins/component-picker-block/index.tsx index 1e08959201..2500f72e8b 100644 --- a/web/app/components/base/prompt-editor/plugins/component-picker-block/index.tsx +++ b/web/app/components/base/prompt-editor/plugins/component-picker-block/index.tsx @@ -57,7 +57,7 @@ const ComponentPicker = ({ const { refs, floatingStyles, elements } = useFloating({ placement: 'bottom-start', middleware: [ - offset(16), // fix hide cursor + offset(0), // fix hide cursor shift(), flip(), ],