Skip to content

Commit 87bb112

Browse files
committed
Merge branch 'next' into feature/next-dynamic-modal
2 parents 7155f54 + 7c8c9c8 commit 87bb112

File tree

6 files changed

+14
-12
lines changed

6 files changed

+14
-12
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: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,15 @@ export default {
270270
}
271271
function handleLockScroll() {
272272
if (props.modelValue) {
273-
if (props.lockScroll) {
274-
disableBodyScroll(vfmContainer.value, {
275-
reserveScrollBarGap: true
276-
})
277-
} else {
278-
enableBodyScroll(vfmContainer.value)
279-
}
273+
nextTick(() => {
274+
if (props.lockScroll) {
275+
disableBodyScroll(vfmContainer.value, {
276+
reserveScrollBarGap: true
277+
})
278+
} else {
279+
enableBodyScroll(vfmContainer.value)
280+
}
281+
})
280282
}
281283
}
282284
function getAttachElement() {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-final-modal",
3-
"version": "1.8.6",
3+
"version": "1.8.8",
44
"description": "Vue Final Modal is a renderless, stackable, detachable and lightweight modal component.",
55
"private": false,
66
"main": "dist/VueFinalModal.umd.js",

0 commit comments

Comments
 (0)