Merge pull request #17750 from filamentphp/fix/sharing-deferred-table-filters-to-widgets

fix: Sharing deferred table filters to widgets
This commit is contained in:
Dan Harrin
2025-09-11 22:12:53 +01:00
committed by GitHub
3 changed files with 11 additions and 4 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
@@ -75,7 +75,10 @@ trait InteractsWithPageTable /** @phpstan-ignore trait.unused */
/** @var HasTable $tableComponent */
$page = app('livewire')->new($this->getTablePage());
trigger('mount', $page, [
trigger('mount', $page, [], null, null);
foreach ([
'activeTab' => $this->activeTab,
'paginators' => $this->paginators,
'parentRecord' => $this->parentRecord,
@@ -86,7 +89,11 @@ trait InteractsWithPageTable /** @phpstan-ignore trait.unused */
'tableSearch' => $this->tableSearch,
'tableSort' => $this->tableSort,
...$this->getTablePageMountParameters(),
], null, null);
] as $property => $value) {
$page->{$property} = $value;
}
$page->bootedInteractsWithTable();
return $this->tablePage = $page;
}
@@ -2,7 +2,7 @@
@apply relative block rounded-xl bg-white p-6 shadow-sm ring-1 ring-gray-950/5 dark:bg-gray-900 dark:ring-white/10;
& .fi-icon {
@apply text-gray-400 dark:text-gray-500;
@apply shrink-0 text-gray-400 dark:text-gray-500;
}
& .fi-wi-stats-overview-stat-content {