Skip to content

Commit 44fca7a

Browse files
committed
Merge branch 'dev' into next
2 parents c9dc250 + e8ff7ca commit 44fca7a

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
@@ -218,6 +218,10 @@ function getModalInfo() {
218218
}
219219
function mounted() {
220220
if (props.modelValue) {
221+
if (emitEvent('before-open', false)) {
222+
return
223+
}
224+
221225
let target = getAttachElement()
222226
if (target || props.attach === false) {
223227
props.attach !== false && target.appendChild(root.value)
@@ -236,10 +240,6 @@ function mounted() {
236240
}
237241
})
238242
239-
if (emitEvent('before-open', false)) {
240-
return
241-
}
242-
243243
visible.value = true
244244
nextTick(() => {
245245
startTransitionEnter()

0 commit comments

Comments
 (0)