mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-27 21:33:41 +02:00
Tiptap's React wrapper initialises the menu element with position:absolute, but computePosition needs position:fixed so getOffsetParent returns the viewport instead of a positioned ancestor. On the first show, coordinates were computed relative to the wrong containing block, causing the menu to fly off-screen (negative coords). Fix: set position:fixed in the onShow callback, which fires right before updatePosition(), ensuring computePosition sees the correct offset parent. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>