diff --git a/apps/web/core/components/editor/lite-text/editor.tsx b/apps/web/core/components/editor/lite-text/editor.tsx index 6ae3edf41..82e531506 100644 --- a/apps/web/core/components/editor/lite-text/editor.tsx +++ b/apps/web/core/components/editor/lite-text/editor.tsx @@ -73,6 +73,7 @@ export const LiteTextEditor = React.forwardRef(null); // editor flaggings const { liteText: liteTextEditorExtensions } = useEditorFlagging({ workspaceSlug: workspaceSlug?.toString() ?? "", @@ -95,7 +96,7 @@ export const LiteTextEditor = React.forwardRef(ref) ? ref.current : null; + return (
{ + if (ready) { + setEditorRef(isMutableRefObject(ref) ? ref.current : null); + } + }} mentionHandler={{ searchCallback: async (query) => { const res = await fetchMentions(query);