Skip to content

Commit f5f931f

Browse files
committed
fix: #55 - Set prop with mobile device it have error message
1 parent 256a216 commit f5f931f

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
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
@@ -271,13 +271,15 @@ export default {
271271
}
272272
function handleLockScroll() {
273273
if (props.modelValue) {
274-
if (props.lockScroll) {
275-
disableBodyScroll(vfmContainer.value, {
276-
reserveScrollBarGap: true
277-
})
278-
} else {
279-
enableBodyScroll(vfmContainer.value)
280-
}
274+
nextTick(() => {
275+
if (props.lockScroll) {
276+
disableBodyScroll(vfmContainer.value, {
277+
reserveScrollBarGap: true
278+
})
279+
} else {
280+
enableBodyScroll(vfmContainer.value)
281+
}
282+
})
281283
}
282284
}
283285
function getAttachElement() {

0 commit comments

Comments
 (0)