Skip to content

Commit

Permalink
Merge pull request #7 from JoshuaSigaban/bug-fiix-#2
Browse files Browse the repository at this point in the history
changed DOMContentLoaded to livewire:navigated to solve ->spa() bug
  • Loading branch information
aymanalhattami authored May 17, 2024
2 parents 8e4e9c8 + d9cb46e commit 081453f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/components/context-menu.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class="flex z-50 min-w-48 max-w-2xl text-neutral-800 rounded-md ring-1 ring-gray
</div>

<script>
document.addEventListener('DOMContentLoaded', function () {
document.addEventListener('livewire:navigated', function () {
var contextMenu = document.getElementById('contextMenu');
var contextMenuTrigger = document.getElementsByClassName('fi-main')[0];
Expand Down

0 comments on commit 081453f

Please sign in to comment.