Open arjendevos opened 7 months ago
@arjendevos Did you ever figure out how to work around this. I'm running into the same thing. I did find that it seems to work when make the tippy.js tippy-content div position:relative. But it rebreaks with any update to the tiptap editor.
@arjendevos If you haven't made progress, check this out: https://github.com/ueberdosis/tiptap/discussions/4145#discussioncomment-6907839
@mattlevine i actually tried with the ref, but don't know if I tried it that way. Will test it soon!
@mattlevine tested it with a ref but it worked very sporadically. I'd say 80% of the time, it doesn't work.
Novel lib solved this, I just don't remember how, but they did.
In my case switching from Dropdown
to a Popover
fixed the problem automatically.
This is my select:
This is my bubblemenu (tiptap editor). This uses tippy to show:
Tippy menu open:
Select open:
I've tried to set the container in the portal to the containerRef of the bubblemenu but this causes the same behaviour. I'm not sure what is causing this, a popover does work?
If I set the position to item-aligned I get the same result. Which is weird considering popover works?
Versions:
Update: just found out it does work when textAlignment = justify. Update 2: I think it has to do with rendering. I've been trying to optimize a lot in the components and it works very sporadically right now Update 3: The moment i click on it, for a split second it shows the menu on the right position, and then suddenly goes to the top Update 4: It seems to happen when editor from useEditor changes. I am currently using it in a context like this:
When i comment this out, it opens it on the right place but the tippy popup disappears. Update 5: when i put the root in a memo and the content's in there, the popup keeps the position but the tippy disappears