@lobehub/editor 1.8.0 → 1.8.1
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.
|
@@ -472,7 +472,9 @@ export default /*#__PURE__*/memo(function (_ref3) {
|
|
|
472
472
|
if (typeof document === 'undefined') {
|
|
473
473
|
return null;
|
|
474
474
|
}
|
|
475
|
-
var
|
|
475
|
+
var root = editor.getRootElement();
|
|
476
|
+
var anchor = root ? root.parentElement : null;
|
|
477
|
+
var targetElement = anchorElem || anchor || document.body;
|
|
476
478
|
return /*#__PURE__*/createPortal( /*#__PURE__*/_jsx(TableCellActionMenuContainer, {
|
|
477
479
|
anchorElem: targetElement,
|
|
478
480
|
cellMerge: cellMerge,
|
|
@@ -254,7 +254,9 @@ export default /*#__PURE__*/memo(function (_ref2) {
|
|
|
254
254
|
if (typeof document === 'undefined') {
|
|
255
255
|
return null;
|
|
256
256
|
}
|
|
257
|
-
var
|
|
257
|
+
var root = editor.getRootElement();
|
|
258
|
+
var anchor = root ? root.parentElement : null;
|
|
259
|
+
var targetElement = anchorElem || anchor || document.body;
|
|
258
260
|
return /*#__PURE__*/createPortal( /*#__PURE__*/_jsx(TableHoverActionsContainer, {
|
|
259
261
|
anchorElem: targetElement,
|
|
260
262
|
editor: editor
|
package/package.json
CHANGED