filament/filament
v3.2.124
v11.0
No response
PHP 8.3.0
When using custom form filters in tables, live()
fields bypass the deferFilters()
setting, causing the query to rerun immediately after the field is modified.
This issue seems to occur because the deferFilters()
mechanism relies on the live()
property, as seen in the following filament code:
Line 36 of filament/tables/src/Concerns/HasFilters.php
->when(! $this->getTable()->hasDeferredFilters(), fn (Form $form) => $form->live());
I expect deferFilters() to be independent of the content of my filter form. For example, I'm using dynamic type properties in my filter form (https://filamentphp.com/docs/3.x/forms/advanced#dynamic-fields-based-on-a-select-option), and live() property is very much needed (if you know a workaround to make it working without live(), please share).
https://github.com/davide-alpi/filament-issue-defer-filters
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too