[3.2.0] Filter components doesn't update / generate blur event
Hello. We are using DatePicker in filter like this:
After updating to 3.2.0 it breaks.
If I update date filter - nothing happens. When I select text field and leave it - update triggers.
v3.2.0 changed filters here: https://github.com/filamentphp/filament/blob/a1fe2b159e94c9e0a6bf7405001eff074e3df4eb/packages/tables/src/Concerns/HasFilters.php#L35
In my specific scenario I tried adding
Is this a bug? If not, what's the easiest way to override this behavior in whole application?
After updating to 3.2.0 it breaks.
If I update date filter - nothing happens. When I select text field and leave it - update triggers.
v3.2.0 changed filters here: https://github.com/filamentphp/filament/blob/a1fe2b159e94c9e0a6bf7405001eff074e3df4eb/packages/tables/src/Concerns/HasFilters.php#L35
In my specific scenario I tried adding
live() on DatePicker, but it also happens when using toggle(), where I'm not in control of form elements.Is this a bug? If not, what's the easiest way to override this behavior in whole application?
Solution
GitHub
In v3.2, we made all filters affect the table content on blur, instead of immediately. However, some fields do not have full support for blur, so we are reverting this change for now.
Fixes #10819.
Fixes #10819.