@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.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
- panelOrLayer.appendChild(host);
2492
+ document.body.appendChild(host);
2494
2493
  setContainer(host);
2495
2494
  return () => {
2496
2495
  host.remove();