@landtrustinc/design-system 1.2.51-beta.0 → 1.2.51-beta.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/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6390,6 +6390,9 @@ var WidgetRoot = ({
|
|
|
6390
6390
|
(0, import_react31.useEffect)(() => {
|
|
6391
6391
|
if (!isExpanded)
|
|
6392
6392
|
return;
|
|
6393
|
+
const isMobile = window.matchMedia("(max-width: 767px)").matches;
|
|
6394
|
+
if (!isMobile)
|
|
6395
|
+
return;
|
|
6393
6396
|
const originalOverflow = document.body.style.overflow;
|
|
6394
6397
|
document.body.style.overflow = "hidden";
|
|
6395
6398
|
return () => {
|