Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 61e02ed

Browse files
committed
changes for #144
1 parent ceb0097 commit 61e02ed

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)