dtable-ui-component 6.0.117-beta.12 → 6.0.117-beta.13

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.
@@ -20,10 +20,13 @@ const DTableDropdownMenu = _ref => {
20
20
  menuProps,
21
21
  children
22
22
  } = _ref;
23
- let customMenuProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, menuProps), {}, {
24
- flip: false,
25
- container: document.body
26
- });
23
+ let customMenuProps = (0, _objectSpread2.default)({}, menuProps);
24
+ customMenuProps.modifiers = [{
25
+ name: 'preventOverflow',
26
+ options: {
27
+ boundary: document.body
28
+ }
29
+ }, ...((customMenuProps === null || customMenuProps === void 0 ? void 0 : customMenuProps.modifiers) || [])];
27
30
  if (container) {
28
31
  customMenuProps.container = container;
29
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.117-beta.12",
3
+ "version": "6.0.117-beta.13",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "^5.0.8",