@micromag/core 0.3.767 → 0.3.769
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/es/components.js +2 -2
- package/lib/components.js +4500 -0
- package/lib/contexts.js +1802 -0
- package/lib/hooks.js +2474 -0
- package/lib/index.js +2436 -0
- package/lib/utils.js +1255 -0
- package/package.json +9 -4
package/es/components.js
CHANGED
|
@@ -17,7 +17,7 @@ import { useFieldsManager, useFieldComponent, FieldContextProvider, withModals,
|
|
|
17
17
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
18
18
|
import get from 'lodash/get';
|
|
19
19
|
import queryString from 'query-string';
|
|
20
|
-
import
|
|
20
|
+
import { createPortal } from 'react-dom';
|
|
21
21
|
import { faAngleDown } from '@fortawesome/free-solid-svg-icons/faAngleDown';
|
|
22
22
|
import { faAngleUp } from '@fortawesome/free-solid-svg-icons/faAngleUp';
|
|
23
23
|
import dayjs from 'dayjs';
|
|
@@ -1802,7 +1802,7 @@ var ElementPortal = function ElementPortal(_ref) {
|
|
|
1802
1802
|
}
|
|
1803
1803
|
};
|
|
1804
1804
|
}, [finalId, data]);
|
|
1805
|
-
return container !== null ? /*#__PURE__*/
|
|
1805
|
+
return container !== null ? /*#__PURE__*/createPortal(children, container) : null;
|
|
1806
1806
|
};
|
|
1807
1807
|
ElementPortal.propTypes = propTypes$t;
|
|
1808
1808
|
ElementPortal.defaultProps = defaultProps$t;
|