@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/dist/lui.esm.js CHANGED
@@ -42237,14 +42237,9 @@ var LuiModalV2 = function (props) {
42237
42237
  var showHelpButton = Boolean(props.helpLink);
42238
42238
  var showButtons = showCloseButton || showHelpButton;
42239
42239
  var showHeadingIcon = props.headingIcon && !props.isLoading;
42240
- // this is here for the tests
42241
- useEffect(function () {
42242
- if (isProcess && !isTest)
42243
- Modal.setAppElement('#root');
42244
- }, []);
42245
42240
  return (React__default.createElement(Modal, { key: props.key, isOpen: true,
42246
42241
  // disble the `shouldClose` props as we handle them ourselves
42247
- shouldCloseOnOverlayClick: false, shouldCloseOnEsc: false, overlayClassName: "modal", className: props.lowContrast ? 'lui-scrim-low-contrast' : 'lui-scrim',
42242
+ shouldCloseOnOverlayClick: false, shouldCloseOnEsc: false, overlayClassName: "modal", className: props.lowContrast ? 'lui-scrim-low-contrast' : 'lui-scrim', appElement: document.getElementById('root'),
42248
42243
  // required to prevent warnings that are not applicable in real usage
42249
42244
  ariaHideApp: !isTest, parentSelector: props.appendToElement },
42250
42245
  React__default.createElement("div", { ref: function (el) {