[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:
M. Palanikannan
2024-04-01 12:04:01 +05:30
committed by GitHub
parent 3a466cfe40
commit fafdac68f0
4 changed files with 5 additions and 4 deletions

View File

@@ -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,