@linzjs/lui 21.45.1 → 21.45.2-0

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 CHANGED
@@ -42288,6 +42288,11 @@ var LuiModalV2 = function (props) {
42288
42288
  var showHelpButton = Boolean(props.helpLink);
42289
42289
  var showButtons = showCloseButton || showHelpButton;
42290
42290
  var showHeadingIcon = props.headingIcon && !props.isLoading;
42291
+ // this is here for the tests
42292
+ React.useEffect(function () {
42293
+ if (isProcess && !isTest)
42294
+ Modal.setAppElement('#root');
42295
+ }, []);
42291
42296
  return (React__default["default"].createElement(Modal, { key: props.key, isOpen: true,
42292
42297
  // disble the `shouldClose` props as we handle them ourselves
42293
42298
  shouldCloseOnOverlayClick: false, shouldCloseOnEsc: false, overlayClassName: "modal", className: props.lowContrast ? 'lui-scrim-low-contrast' : 'lui-scrim', appElement: document.getElementById('root'),