Closed tkulpa closed 2 years ago
This is not supported because rendering an element outside of the react scope breaks interactivity. this is a limitation of react.
fyi @tkulpa I have an alternate BubbleMenu component example here https://github.com/ueberdosis/tiptap/issues/2305#issuecomment-1020665146 which is relatively simple but uses a Portal so should presumably work for your use-case.
What’s the bug you are facing?
Adding
tippyOptions={{ appendTo: () => document.body }}
toBubbleMenu
causes that BubbleMenu buttons become unclickable and I need tippy to be portaled outside of parentHow can we reproduce the bug on our side?
See CodeSandbox below
Can you provide a CodeSandbox?
https://codesandbox.io/s/tiptap-react-editor-forked-umehj
What did you expect to happen?
Things inside
BubbleMenu
after it being appended to body is still clickableAnything to add? (optional)
No response
Did you update your dependencies?
Are you sponsoring us?