Fix:Remove dropdown menus on component destroy and edit modal keep alive #245

This commit is contained in:
advplyr 2021-12-20 19:02:52 -06:00
parent a913e9811e
commit 8721dbda98
3 changed files with 9 additions and 5 deletions

View file

@ -19,9 +19,7 @@
</div>
<div class="w-full h-full text-sm rounded-b-lg rounded-tr-lg bg-bg shadow-lg border border-black-300">
<keep-alive>
<component v-if="audiobook" :is="tabName" :audiobook="audiobook" :processing.sync="processing" @close="show = false" @selectTab="selectTab" />
</keep-alive>
<component v-if="audiobook && show" :is="tabName" :audiobook="audiobook" :processing.sync="processing" @close="show = false" @selectTab="selectTab" />
</div>
</modals-modal>
</template>