[WEB-876] fix: Multiple editor instances cause weird issues with Tippy (#4092)
* fix: tippy rendered properly when there are multiple editor instances * enhancement: using cn to merge classes conditionally
This commit is contained in:
parent
3a466cfe40
commit
fafdac68f0
4 changed files with 5 additions and 4 deletions
|
|
@ -330,7 +330,7 @@ const renderItems = () => {
|
|||
// @ts-ignore
|
||||
popup = tippy("body", {
|
||||
getReferenceClientRect: props.clientRect,
|
||||
appendTo: () => document.querySelector("#editor-container"),
|
||||
appendTo: () => document.querySelector(".active-editor") ?? document.querySelector("#editor-container"),
|
||||
content: component.element,
|
||||
showOnCreate: true,
|
||||
interactive: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue