Skip to content

Commit

Permalink
Move if check to portal element
Browse files Browse the repository at this point in the history
  • Loading branch information
dnwjn committed Feb 6, 2022
1 parent dac00c4 commit b26dcf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/js/components/IndexField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
@click="openModal = true"
/>

<portal to="modals">
<portal to="modals" v-if="openModal">
<transition name="fade">
<modal v-if="openModal" @modal-close="openModal = false">
<modal @modal-close="openModal = false">
<form class="bg-white rounded-lg shadow-lg overflow-hidden" style="width: 460px;">
<div class="p-8">
<heading :level="2" class="mb-6" v-html="field.confirm.title"></heading>
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/NovaButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import { queue } from '../queue.js';
export default {
props: ['resource', 'resourceName', 'resourceId', 'field'],
props: ['resource', 'resourceName', 'resourceId', 'field', 'ajaxClasses'],
data: () => ({
buttonWidth: null,
loading: false,
Expand Down

0 comments on commit b26dcf9

Please sign in to comment.