This commit is contained in:
Freeplay 2023-04-28 20:26:10 -04:00
parent 3be2147397
commit 23beca49e3
2 changed files with 35 additions and 34 deletions

View file

@ -14,9 +14,11 @@
:duration="transitionDuration" :duration="transitionDuration"
appear appear
@after-leave="emit('closed')" @after-leave="emit('closed')"
@keyup.esc="emit('click')"
@enter="emit('opening')" @enter="emit('opening')"
@after-enter="onOpened" @after-enter="onOpened"
> >
<focus-trap v-model:active="isActive">
<div <div
v-show="manualShowing != null ? manualShowing : showing" v-show="manualShowing != null ? manualShowing : showing"
v-hotkey.global="keymap" v-hotkey.global="keymap"
@ -52,7 +54,6 @@
@mousedown="onBgClick" @mousedown="onBgClick"
@contextmenu.prevent.stop="() => {}" @contextmenu.prevent.stop="() => {}"
></div> ></div>
<focus-trap v-model:active="isActive">
<div <div
ref="content" ref="content"
:class="[ :class="[
@ -64,8 +65,8 @@
> >
<slot :max-height="maxHeight" :type="type"></slot> <slot :max-height="maxHeight" :type="type"></slot>
</div> </div>
</focus-trap>
</div> </div>
</focus-trap>
</Transition> </Transition>
</template> </template>