From 7b68b75166849b70c39925e56d0b9f2b76edaf34 Mon Sep 17 00:00:00 2001 From: marcoskolodny Date: Wed, 23 Oct 2024 13:53:18 +0200 Subject: [PATCH 1/2] fix hook --- src/hooks.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/hooks.tsx b/src/hooks.tsx index a89af8d3f..9b8293f4f 100644 --- a/src/hooks.tsx +++ b/src/hooks.tsx @@ -53,7 +53,6 @@ export const useDisableBodyScroll = (disable: boolean): void => { `top: ${-bodyScrollTop}px;`, 'left: 0px;', 'right: 0px;', - 'bottom: 0px;', 'overscroll-behavior-y: contain;', // disable overscroll ].join(''); } From 180487167ed52373a9f743ef6e210e1b979d6bdf Mon Sep 17 00:00:00 2001 From: marcoskolodny Date: Wed, 23 Oct 2024 14:04:22 +0200 Subject: [PATCH 2/2] fix unit tests --- src/__tests__/hooks-test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/__tests__/hooks-test.tsx b/src/__tests__/hooks-test.tsx index e588173ee..784bc4468 100644 --- a/src/__tests__/hooks-test.tsx +++ b/src/__tests__/hooks-test.tsx @@ -11,7 +11,7 @@ const INITIAL_BODY_STYLES = 'background: red;'; const DISABLED_BODY_STYLES = INITIAL_BODY_STYLES + ' ' + - 'overflow: hidden; overflow-y: scroll; position: fixed; top: 0px; left: 0px; right: 0px; bottom: 0px;'; + 'overflow: hidden; overflow-y: scroll; position: fixed; top: 0px; left: 0px; right: 0px;'; const DisableScroll = () => { useDisableBodyScroll(true);