Closed alexjustesen closed 11 months ago
Past related issues: #7567 and #8052
Added https://github.com/alexjustesen/filament-houdini-widgets to track issues in a fresh repo and added better videos to show it happening.
Is this still an issue in the latest version of Livewire?
Is this still an issue in the latest version of Livewire?
Give me a day or so to update the repo and test again.
Sure, no rush, @alexjustesen!
Having same issue on Livewire 3.0.5, Filament 3.0.62, PHP 8.2.10, Laravel 10.24
Okay, thanks for confirming, @ImJustToNy.
@zepfietje repo updated with the latest versions of the dependencies. Issues still exist.
I confirm this issue still exists
Updated with the latest dependencies, confirmed still an issue.
Fixed by #10054.
Fixed by #10054.
Thank you!
Fixed by #10054.
~~It fixed the issue in some places, but it still persists in others.
From my understanding issue appears when both Header and Footer widgets are declared.
Minimal reproduction code in my case is:
namespace App\Filament\Resources\UserResource\Pages;
use App\Filament\Resources\UserResource;
class ListUsers extends ListRecords
{
protected static string $resource = UserResource::class;
protected function getHeaderWidgets(): array
{
return [
UserResource\Widgets\HeaderWidget::class,
];
}
protected function getFooterWidgets(): array
{
return [
UserResource\Widgets\FooterWidget::class,
];
}
}
namespace App\Filament\Resources\UserResource\Widgets;
use Filament\Widgets\StatsOverviewWidget as BaseWidget;
use Filament\Widgets\StatsOverviewWidget\Stat;
class HeaderWidget extends BaseWidget
{
protected function getStats(): array
{
return [
//
];
}
}
namespace App\Filament\Resources\UserResource\Widgets;
use Filament\Widgets\StatsOverviewWidget as BaseWidget;
use Filament\Widgets\StatsOverviewWidget\Stat;
class FooterWidget extends BaseWidget
{
protected function getStats(): array
{
return [
//
];
}
}
@danharrin ~~
I cannot reproduce, please create a new repository
I cannot reproduce, please create a new repository
My bad, checked it on the wrong branch, everything works perfectly now :sweat_smile:. Thank you.
Package
filament/filament
Package Version
v3.0.39
Laravel Version
v10.22.0
Livewire Version
v3.0.1
PHP Version
PHP 8.2
Problem description
wire:poll
is present in a page's view.From action button click
https://github.com/filamentphp/filament/assets/1144087/dce7d61a-b040-4a5a-9217-24aacbcb676b
From wire poll in page
https://github.com/filamentphp/filament/assets/1144087/d49e4d8f-cf5d-401a-9269-da8e4c2bac01
Expected behavior
Widgets should remain rendered on the page.
Steps to reproduce
getFooterWidgets()
Reproduction repository
Relevant log output