saulens22
saulens22
FFilament
Created by saulens22 on 1/15/2024 in #❓┊help
[3.2.0] Filter components doesn't update / generate blur event
Hello. We are using DatePicker in filter like this:
Filter::make('filter')
->form([
DatePicker::make('date-filter')
->native(false),

TextInput::make('text-filter'),
]);
Filter::make('filter')
->form([
DatePicker::make('date-filter')
->native(false),

TextInput::make('text-filter'),
]);
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?
17 replies