Skip to content

Commit 44b3b8a

Browse files
committed
Fixed #14, Scrollbar only reappears when all the modals are closed
1 parent 77699f4 commit 44b3b8a

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

dist/VueFinalModal.esm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/VueFinalModal.esm.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/VueFinalModal.umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/VueFinalModal.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/VueFinalModal.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ export default {
280280
this.modalTransitionState = TransitionState.Leave
281281
this.modalStackIndex = null
282282
283-
this.lockScroll && removeStyle(document.body, 'overflow')
283+
if (this.api.openedModals.length === 0) {
284+
this.lockScroll && removeStyle(document.body, 'overflow')
285+
}
284286
this.$emit('closed')
285287
},
286288
onClickContainer() {

0 commit comments

Comments
 (0)