@tarviks/lexical-rich-editor 1.3.3 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2487,10 +2487,9 @@ function useFloatingPortalContainer(editor) {
|
|
|
2487
2487
|
useEffect(() => {
|
|
2488
2488
|
const root = editor.getRootElement();
|
|
2489
2489
|
if (!root) return;
|
|
2490
|
-
const panelOrLayer = root.closest(".ms-Panel-main") || root.closest(".ms-Panel") || root.closest(".ms-Layer") || document.body;
|
|
2491
2490
|
const host = document.createElement("div");
|
|
2492
2491
|
host.className = "lexical-floating-ui-host";
|
|
2493
|
-
|
|
2492
|
+
document.body.appendChild(host);
|
|
2494
2493
|
setContainer(host);
|
|
2495
2494
|
return () => {
|
|
2496
2495
|
host.remove();
|