omnia-digital / livewire-calendar

Laravel Livewire component to show Events in a good looking monthly calendar
MIT License
68 stars 7 forks source link

Multiday are events not spanning all days #31

Open nathanmay opened 1 month ago

nathanmay commented 1 month ago

Using your demo code for conveneince, when setting a start date and end date, the event only shows on the start date and doesnt span across all days.

I have tried with both the multiday tag and without.

This was previously working but I have recently upgraded to Livewire 3 and laravel 11 - So guessing it is somewhat related.

I am runing php 8.2.

public function events() : Collection
{
    return collect([
        [
            'id' => 1,
            'title' => 'Breakfast',
            'description' => 'Pancakes! 🥞',
            'date' => Carbon::today(),
            'end' => Carbon::tomorrow(),
        ],
    ]);
}

OR...

public function events() : Collection
{
    return collect([
        [
            'id' => 1,
            'title' => 'Breakfast',
            'description' => 'Pancakes! 🥞',
            'date' => Carbon::today(),
            'end' => Carbon::tomorrow(),
            'multiday' => true
        ],
    ]);
}
Screenshot 2024-05-24 182613