@shoplflow/base 0.24.14 → 0.24.15
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.cjs +7 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -863,12 +863,13 @@ var ModalProvider = ({ children }) => {
|
|
|
863
863
|
};
|
|
864
864
|
const dispatch = useMemo(() => ({ addModal, removeModal }), []);
|
|
865
865
|
useEffect(() => {
|
|
866
|
-
if (openedModals.length
|
|
867
|
-
|
|
868
|
-
return () => {
|
|
869
|
-
document.body.style.cssText = "overflow:unset";
|
|
870
|
-
};
|
|
866
|
+
if (openedModals.length !== 1) {
|
|
867
|
+
return;
|
|
871
868
|
}
|
|
869
|
+
document.body.style.cssText = "overflow:hidden";
|
|
870
|
+
return () => {
|
|
871
|
+
document.body.style.cssText = "overflow:unset";
|
|
872
|
+
};
|
|
872
873
|
}, [openedModals.length]);
|
|
873
874
|
return /* @__PURE__ */ jsx(ModalContext.Provider, { value: openedModals, children: /* @__PURE__ */ jsx(ModalHandlerContext.Provider, { value: dispatch, children }) });
|
|
874
875
|
};
|
|
@@ -1883,7 +1884,7 @@ var DropdownButton = forwardRef(
|
|
|
1883
1884
|
transition: {
|
|
1884
1885
|
duration: 0.2
|
|
1885
1886
|
},
|
|
1886
|
-
children: /* @__PURE__ */ jsx(Icon_default, { iconSource: DownArrowSolidXsmallIcon, color: "neutral400", sizeVar: "
|
|
1887
|
+
children: /* @__PURE__ */ jsx(Icon_default, { iconSource: DownArrowSolidXsmallIcon, color: "neutral400", sizeVar: "XS" })
|
|
1887
1888
|
}
|
|
1888
1889
|
)
|
|
1889
1890
|
] }))
|