Skip to content

Commit

Permalink
fix(RModal): Improvements for modal overflow handling
Browse files Browse the repository at this point in the history
  • Loading branch information
gokh4nozturk committed Dec 29, 2023
1 parent ce1fa71 commit 4768bc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Modal/RModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ watchEffect(() => {
)
onUnmounted(() => {
document.body.style.overflow = 'auto'
if (!props.modelValue && props.allowBodyScroll)
document.body.style.overflow = 'auto'
})
// close on escape
Expand Down

0 comments on commit 4768bc0

Please sign in to comment.