mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-23 18:17:44 +02:00
EditorLinkPreview's useRef initializer accessed editor.view?.dom which throws when the editor view is not yet mounted (Tiptap uses a Proxy that rejects property access before mount). Defer the contextElement assignment to the selectionUpdate callback where the view is guaranteed to exist.