Skip to content

Commit

Permalink
Load modal slot on show (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
dillingham committed Mar 23, 2021
1 parent 9820941 commit 7ddfc37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stubs/inertia/resources/js/Jetstream/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
leave-from-class="opacity-100 translate-y-0 sm:scale-100"
leave-to-class="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95">
<div v-show="show" class="mb-6 bg-white rounded-lg overflow-hidden shadow-xl transform transition-all sm:w-full sm:mx-auto" :class="maxWidthClass">
<slot></slot>
<slot v-if="show"></slot>
</div>
</transition>
</div>
Expand Down

0 comments on commit 7ddfc37

Please sign in to comment.