diff --git a/src/components/Modal/RModal.vue b/src/components/Modal/RModal.vue index aa8b99a..4915a0e 100644 --- a/src/components/Modal/RModal.vue +++ b/src/components/Modal/RModal.vue @@ -152,7 +152,8 @@ watchEffect(() => { ) onUnmounted(() => { - document.body.style.overflow = 'auto' + if (!props.modelValue && props.allowBodyScroll) + document.body.style.overflow = 'auto' }) // close on escape