Skip to content

Commit

Permalink
Scroll -> Auto in for BottomModal
Browse files Browse the repository at this point in the history
  • Loading branch information
codeAbinash committed Jun 19, 2023
1 parent 83f48f4 commit c4cae74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/BottomModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function BottomModal({ show, children, btnTxt, cb }: { show: bool

useEffect(() => {
if (isShow) document.body.style.overflowY = 'hidden'
return () => { document.body.style.overflowY = 'scroll' }
return () => { document.body.style.overflowY = 'auto' }
}, [isShow])

function hideModal() {
Expand Down

0 comments on commit c4cae74

Please sign in to comment.