@bindu-dashing/dam-solution-v2 5.8.187 → 5.8.188

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.
@@ -110,15 +110,18 @@ const FileDetails = ({ open, handleClose, file, files, fileIds, onCloseSelection
110
110
  }
111
111
  }, [open]);
112
112
  // Lock body scroll when preview modal is open so drive page files don't scroll behind it
113
+ // Add body class so host app can lower header z-index and let preview modal appear above it
113
114
  useEffect(() => {
114
115
  if (open && visible) {
115
116
  const prevBodyOverflow = document.body.style.overflow;
116
117
  const prevHtmlOverflow = document.documentElement.style.overflow;
117
118
  document.body.style.overflow = "hidden";
118
119
  document.documentElement.style.overflow = "hidden";
120
+ document.body.classList.add("dam-preview-open");
119
121
  return () => {
120
122
  document.body.style.overflow = prevBodyOverflow;
121
123
  document.documentElement.style.overflow = prevHtmlOverflow;
124
+ document.body.classList.remove("dam-preview-open");
122
125
  };
123
126
  }
124
127
  }, [open, visible]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bindu-dashing/dam-solution-v2",
3
- "version": "5.8.187",
3
+ "version": "5.8.188",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.0.1",
6
6
  "@emoji-mart/data": "^1.2.1",