fix: popup not really hidden when hidden

This commit is contained in:
kolaente 2022-02-20 22:02:59 +01:00
parent 622f08fb1b
commit c7943ef823
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -1,6 +1,6 @@
<template>
<slot name="trigger" :isOpen="open" :toggle="toggle"></slot>
<div class="popup" :class="{'is-open': open, 'has-overflow': props.hasOverflow}" ref="popup">
<div class="popup" :class="{'is-open': open, 'has-overflow': props.hasOverflow && open}" ref="popup">
<slot name="content" :isOpen="open"/>
</div>
</template>