Fix: Prevent overlay closing if click start inside

pull/1361/head
Mirko 2021-07-01 14:17:28 +02:00
parent 9a43ebdb02
commit 49b5442a9f
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<Teleport :to="appendTo">
<transition name="p-overlaypanel" @enter="onEnter" @leave="onLeave" @after-leave="onAfterLeave">
<div :class="containerClass" v-if="visible" :ref="containerRef" v-bind="$attrs" @click="onOverlayClick">
<div class="p-overlaypanel-content" @click="onContentClick">
<div class="p-overlaypanel-content" @mousedown="onContentClick">
<slot></slot>
</div>
<button class="p-overlaypanel-close p-link" @click="hide" v-if="showCloseIcon" :aria-label="ariaCloseLabel" type="button" v-ripple>