@linzjs/lui 21.40.0 → 21.40.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [21.40.1](https://github.com/linz/lui/compare/v21.40.0...v21.40.1) (2024-07-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **LuiModalV2:** set modal appElement via props ([#1140](https://github.com/linz/lui/issues/1140)) ([a2f52a5](https://github.com/linz/lui/commit/a2f52a59edecf2d691bf480eb41916affd3408b7))
7
+
1
8
  # [21.40.0](https://github.com/linz/lui/compare/v21.39.3...v21.40.0) (2024-07-16)
2
9
 
3
10
 
package/dist/index.js CHANGED
@@ -42266,14 +42266,9 @@ var LuiModalV2 = function (props) {
42266
42266
  var showHelpButton = Boolean(props.helpLink);
42267
42267
  var showButtons = showCloseButton || showHelpButton;
42268
42268
  var showHeadingIcon = props.headingIcon && !props.isLoading;
42269
- // this is here for the tests
42270
- React.useEffect(function () {
42271
- if (isProcess && !isTest)
42272
- Modal.setAppElement('#root');
42273
- }, []);
42274
42269
  return (React__default["default"].createElement(Modal, { key: props.key, isOpen: true,
42275
42270
  // disble the `shouldClose` props as we handle them ourselves
42276
- shouldCloseOnOverlayClick: false, shouldCloseOnEsc: false, overlayClassName: "modal", className: props.lowContrast ? 'lui-scrim-low-contrast' : 'lui-scrim',
42271
+ shouldCloseOnOverlayClick: false, shouldCloseOnEsc: false, overlayClassName: "modal", className: props.lowContrast ? 'lui-scrim-low-contrast' : 'lui-scrim', appElement: document.getElementById('root'),
42277
42272
  // required to prevent warnings that are not applicable in real usage
42278
42273
  ariaHideApp: !isTest, parentSelector: props.appendToElement },
42279
42274
  React__default["default"].createElement("div", { ref: function (el) {