diff --git a/web/app/components/base/prompt-editor/plugins/draggable-plugin/index.tsx b/web/app/components/base/prompt-editor/plugins/draggable-plugin/index.tsx index d30dc2161e..692d3f76eb 100644 --- a/web/app/components/base/prompt-editor/plugins/draggable-plugin/index.tsx +++ b/web/app/components/base/prompt-editor/plugins/draggable-plugin/index.tsx @@ -32,7 +32,7 @@ export default function DraggableBlockPlugin({ const [draggableElement, setDraggableElement] = useState( null, ) -const [editor] = useLexicalComposerContext() + const [editor] = useLexicalComposerContext() const [isSupportDrag, setIsSupportDrag] = useState(false) @@ -55,12 +55,20 @@ const [editor] = useLexicalComposerContext() menuRef={menuRef as any} targetLineRef={targetLineRef as any} menuComponent={ - isSupportDrag ?
+ isSupportDrag ?
: null } targetLineComponent={ -
+
+
+
} isOnMenu={isOnMenu} onElementChanged={setDraggableElement}