Skip to content

Commit 285f0f0

Browse files
committed
fix: vfmContainer.value
1 parent 5d008c5 commit 285f0f0

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export default {
190190
})
191191
onBeforeUnmount(() => {
192192
close()
193-
props.lockScroll && enableBodyScroll(vfmContainer)
193+
props.lockScroll && enableBodyScroll(vfmContainer.value)
194194
root?.value?.remove()
195195
196196
let index = $vfm.modals.findIndex(vm => vm.uid === uid)
@@ -272,11 +272,11 @@ export default {
272272
function handleLockScroll() {
273273
if (props.modelValue) {
274274
if (props.lockScroll) {
275-
disableBodyScroll(vfmContainer, {
275+
disableBodyScroll(vfmContainer.value, {
276276
reserveScrollBarGap: true
277277
})
278278
} else {
279-
enableBodyScroll(vfmContainer)
279+
enableBodyScroll(vfmContainer.value)
280280
}
281281
}
282282
}
@@ -341,7 +341,7 @@ export default {
341341
function afterModalLeave() {
342342
modalTransitionState.value = TransitionState.Leave
343343
modalStackIndex.value = null
344-
props.lockScroll && enableBodyScroll(vfmContainer)
344+
props.lockScroll && enableBodyScroll(vfmContainer.value)
345345
346346
let stopEvent = false
347347
const event = createModalEvent({

0 commit comments

Comments
 (0)