Dependent fields in custom Filter ... Error - Possible Bug ?

Hi there..

I have a custom filter with dependent fields...
Month (select) -> day(datePicker with datalist) ..
With some combination it's not working properly. And the browser console show an error :

Uncaught TypeError: Cannot read properties of null (reading 'before')

Tables\Filters\Filter::make('date')->label('Mes') ->form([ Forms\Components\Select::make('month_number')->options(Months::class)->live()->afterStateUpdated(fn($set) => $set('day', null)), Forms\Components\DatePicker::make('day')->datalist(function($get) { if($get('month_number')){ return $this->getDaysArray($get('month_number')); } return []; }) ]) ->query(function (Builder $query, $data) { if(!$data['day']) $q = $query->whereNull('day'); $q = $query->where('day', $data['day']); return $q; })->columns(2)->columnSpan(2),


Looking for a solution I find out a solution --> disabling this option in Livewire config 'inject_morph_markers' => true,
it works

But I don't know is there is further implication with this solution in the filament package

Any help will be appreciated
thanks
Was this page helpful?