@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.js
CHANGED
|
@@ -2508,10 +2508,9 @@ function useFloatingPortalContainer(editor) {
|
|
|
2508
2508
|
React9.useEffect(() => {
|
|
2509
2509
|
const root = editor.getRootElement();
|
|
2510
2510
|
if (!root) return;
|
|
2511
|
-
const panelOrLayer = root.closest(".ms-Panel-main") || root.closest(".ms-Panel") || root.closest(".ms-Layer") || document.body;
|
|
2512
2511
|
const host = document.createElement("div");
|
|
2513
2512
|
host.className = "lexical-floating-ui-host";
|
|
2514
|
-
|
|
2513
|
+
document.body.appendChild(host);
|
|
2515
2514
|
setContainer(host);
|
|
2516
2515
|
return () => {
|
|
2517
2516
|
host.remove();
|