Page MenuHomePhorge

D8480.1765344497.diff
No OneTemporary

Size
607 B
Referenced Files
None
Subscribers
None

D8480.1765344497.diff

diff --git a/landing/landing.react.js b/landing/landing.react.js
--- a/landing/landing.react.js
+++ b/landing/landing.react.js
@@ -49,6 +49,19 @@
[modalContext.modals],
);
+ const isModalOpen = modals.length > 0;
+ React.useEffect(() => {
+ const { body } = document;
+ if (!body || !isModalOpen) {
+ return undefined;
+ }
+
+ body.style.overflow = 'hidden';
+ return () => {
+ body.style.overflow = 'auto';
+ };
+ }, [isModalOpen]);
+
const [showMobileNav, setShowMobileNav] = React.useState<boolean>(false);
const handleResize = React.useCallback(() => {

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 10, 5:28 AM (11 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5853169
Default Alt Text
D8480.1765344497.diff (607 B)

Event Timeline