Skip to content

Commit 7e38512

Browse files
committed
fix(transition): only set transition appear when displayDirective is set to if, because of the focusTrap should be activated until the modal transition end
1 parent 9485c6a commit 7e38512

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vue-final-modal/src/components/CoreModal/CoreModal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ onBeforeUnmount(() => {
179179
@mouseup.self="() => onMouseupRoot()"
180180
@mousedown.self="e => onMousedown(e)"
181181
>
182-
<Transition v-if="!hideOverlay" v-bind="overlayTransition" appear v-on="overlayListeners">
182+
<Transition v-if="!hideOverlay" v-bind="overlayTransition" :appear="displayDirective === 'if'" v-on="overlayListeners">
183183
<div
184184
v-if="overlayVisible"
185185
class="vfm__overlay vfm--overlay vfm--absolute vfm--inset vfm--prevent-none"
@@ -188,7 +188,7 @@ onBeforeUnmount(() => {
188188
aria-hidden="true"
189189
/>
190190
</Transition>
191-
<Transition v-bind="contentTransition" appear v-on="contentListeners">
191+
<Transition v-bind="contentTransition" :appear="displayDirective === 'if'" v-on="contentListeners">
192192
<div
193193
v-show="contentVisible"
194194
ref="vfmContentEl"

0 commit comments

Comments
 (0)