Skip to content

Commit 7b5c68c

Browse files
Merge pull request topcoder-archive#599 from topcoder-platform/issue-144
changes for topcoder-archive#144
2 parents 9aa18d4 + 61e02ed commit 7b5c68c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/src/lib/modal.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ function useProvideModal() {
1818
const [isModalOpen, setIsModalOpen] = useState(false);
1919

2020
const showModal = (show) => {
21+
document.body.classList.add("scrolling-disabled-by-modal");
2122
return setIsModalOpen(true);
2223
};
2324

2425
const hideModal = (show) => {
26+
document.body.classList.remove("scrolling-disabled-by-modal");
2527
return setIsModalOpen(false);
2628
};
2729

0 commit comments

Comments
 (0)