Merge pull request #1361 from Mirko92/master
Fix: Prevent overlay closing if click start insidepull/1391/head
commit
b7b4f6e0d2
|
@ -2,7 +2,7 @@
|
||||||
<Teleport :to="appendTo">
|
<Teleport :to="appendTo">
|
||||||
<transition name="p-overlaypanel" @enter="onEnter" @leave="onLeave" @after-leave="onAfterLeave">
|
<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="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>
|
<slot></slot>
|
||||||
</div>
|
</div>
|
||||||
<button class="p-overlaypanel-close p-link" @click="hide" v-if="showCloseIcon" :aria-label="ariaCloseLabel" type="button" v-ripple>
|
<button class="p-overlaypanel-close p-link" @click="hide" v-if="showCloseIcon" :aria-label="ariaCloseLabel" type="button" v-ripple>
|
||||||
|
|
Loading…
Reference in New Issue