Skip to content

Commit

Permalink
Merge pull request #4 from Log1x/fix/filament-spa
Browse files Browse the repository at this point in the history
🩹 Fix sorting when using SPA mode
  • Loading branch information
mokhosh authored Dec 29, 2023
2 parents aa9a7ce + 9da8e44 commit 3b362bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/kanban-scripts.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function onUpdate(e) {
Livewire.dispatch('sort-changed', {recordId, status, orderedIds})
}
window.onload = () => {
document.addEventListener('livewire:navigated', () => {
@foreach($statuses as $status)
{{-- dont touch this line --}}
Sortable.create(document.getElementById('{{ $status['id'] }}'), {
Expand All @@ -34,5 +34,5 @@ function onUpdate(e) {
onAdd,
})
@endforeach
}
})
</script>

0 comments on commit 3b362bb

Please sign in to comment.