Skip to content

Commit

Permalink
🩹 Fix sorting when using SPA mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Dec 28, 2023
1 parent 33699aa commit 9da8e44
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 9da8e44

Please sign in to comment.