Skip to content

Commit 2ec7e4d

Browse files
committed
Merge branch 'master' into feature/dynamic-modal
2 parents 776c172 + 4849152 commit 2ec7e4d

10 files changed

+29
-22
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export default {
235235

236236
## **Slots**
237237

238-
If you open a modal though API `show(name, params)`, You can using scoped-slot to get `params` in template:
238+
If you open a modal though API `show(name, params)`, You can use scoped-slot to get `params` in template:
239239

240240
```html
241241
<template v-slot="{ params }">

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.

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dependencies": {
1212
"@nuxt/content-theme-docs": "^0.8.2",
1313
"nuxt": "^2.14.12",
14-
"vue-final-modal": "^0.21.5"
14+
"vue-final-modal": "^0.21.7"
1515
},
1616
"devDependencies": {
1717
"@nuxtjs/google-analytics": "^2.4.0",

docs/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10619,10 +10619,10 @@ vue-client-only@^2.0.0:
1061910619
resolved "https://registry.yarnpkg.com/vue-client-only/-/vue-client-only-2.0.0.tgz#ddad8d675ee02c761a14229f0e440e219de1da1c"
1062010620
integrity sha512-arhk1wtWAfLsJyxGMoEYhoBowM87/i6HLSG2LH/03Yog6i2d9JEN1peMP0Ceis+/n9DxdenGYZZTxbPPJyHciA==
1062110621

10622-
vue-final-modal@^0.21.5:
10623-
version "0.21.5"
10624-
resolved "https://registry.yarnpkg.com/vue-final-modal/-/vue-final-modal-0.21.5.tgz#e992a7f82a511d0c852fa84d83d9b6ca8578e41b"
10625-
integrity sha512-2Yby+hhy6qer0Yfk1QVT1p6XqaeoxqMJBuvcMHE8pHAIbVo9pfjJu1cehb5SVBH0QJzTeVPdhcKOBVXOjLl67A==
10622+
vue-final-modal@^0.21.7:
10623+
version "0.21.7"
10624+
resolved "https://registry.yarnpkg.com/vue-final-modal/-/vue-final-modal-0.21.7.tgz#9bf2e7da77e06dbac6d6e1bc58b70c2eb0a5c0f7"
10625+
integrity sha512-T0jBkDX2gRqTMWzFQGqvcQhz0jNHo+AaRQ7IceIyVGj231/e3kvTRuNdWughkPenZyGzVHEHdWWlSl2AwD0n9g==
1062610626

1062710627
vue-hot-reload-api@^2.3.0:
1062810628
version "2.3.4"

lib/VueFinalModal.vue

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,15 @@ export default {
243243
},
244244
handleLockScroll() {
245245
if (this.value) {
246-
if (this.lockScroll) {
247-
disableBodyScroll(this.$refs.vfmContainer, {
248-
reserveScrollBarGap: true
249-
})
250-
} else {
251-
enableBodyScroll(this.$refs.vfmContainer)
252-
}
246+
this.$nextTick(() => {
247+
if (this.lockScroll) {
248+
disableBodyScroll(this.$refs.vfmContainer, {
249+
reserveScrollBarGap: true
250+
})
251+
} else {
252+
enableBodyScroll(this.$refs.vfmContainer)
253+
}
254+
})
253255
}
254256
},
255257
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": "0.21.5",
3+
"version": "0.21.7",
44
"description": "Vue Final Modal is a renderless, stackable, detachable and lightweight modal component.",
55
"private": false,
66
"main": "dist/VueFinalModal.umd.js",

yarn.lock

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6806,11 +6806,16 @@ lodash.uniq@^4.5.0:
68066806
resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"
68076807
integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=
68086808

6809-
lodash@^4.17.11, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.3, lodash@^4.17.4:
6809+
lodash@^4.17.11, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.3:
68106810
version "4.17.20"
68116811
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52"
68126812
integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==
68136813

6814+
lodash@^4.17.4:
6815+
version "4.17.21"
6816+
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
6817+
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
6818+
68146819
log-driver@^1.2.7:
68156820
version "1.2.7"
68166821
resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.7.tgz#63b95021f0702fedfa2c9bb0a24e7797d71871d8"
@@ -8534,9 +8539,9 @@ pug-attrs@^2.0.4:
85348539
pug-runtime "^2.0.5"
85358540

85368541
pug-code-gen@^2.0.2:
8537-
version "2.0.2"
8538-
resolved "https://registry.yarnpkg.com/pug-code-gen/-/pug-code-gen-2.0.2.tgz#ad0967162aea077dcf787838d94ed14acb0217c2"
8539-
integrity sha512-kROFWv/AHx/9CRgoGJeRSm+4mLWchbgpRzTEn8XCiwwOy6Vh0gAClS8Vh5TEJ9DBjaP8wCjS3J6HKsEsYdvaCw==
8542+
version "2.0.3"
8543+
resolved "https://registry.yarnpkg.com/pug-code-gen/-/pug-code-gen-2.0.3.tgz#122eb9ada9b5bf601705fe15aaa0a7d26bc134ab"
8544+
integrity sha512-r9sezXdDuZJfW9J91TN/2LFbiqDhmltTFmGpHTsGdrNGp3p4SxAjjXEfnuK2e4ywYsRIVP0NeLbSAMHUcaX1EA==
85408545
dependencies:
85418546
constantinople "^3.1.2"
85428547
doctypes "^1.1.0"

0 commit comments

Comments
 (0)