malzariey / filament-daterangepicker-filter

MIT License
97 stars 43 forks source link

Can't select today day range #13

Closed wit3 closed 1 year ago

wit3 commented 1 year ago

if i select the day to filter from current-day to current-day the state doesn't change

Video

malzariey commented 1 year ago

Update to the latest version, solved

wit3 commented 1 year ago

datefilter_range_bug.webm

Thanks @malzariey

but the bug it's not fully fixed.

I've upload a video to show what appens.

Now when i click today range a state it's changed ( filter it's apply ) but the value in input not shown. after a refresh instead ( cause the state is changed ) the value it's filled.

Thanks for your work dude!

malzariey commented 1 year ago

Can you share the Filter implementation?

wit3 commented 1 year ago
                    DateRangeFilter::make('date_issued')
                        ->label('Data Emissione')
                        ->columnSpan(3)
                        ->withIndicater(),
                    DateRangeFilter::make('created_at')
                        ->label('Data Ricezione')
                        ->columnSpan(3)
                        ->withIndicater(),
                    DateRangeFilter::make('published_at')
                        ->label('Data Pubblicazione')
                        ->columnSpan(3)
                        ->withIndicater(),
malzariey commented 1 year ago

@wit3 Please update and confirm if it is solved in v1.2.

tgb2006 commented 4 months ago

I found the same issue in version 2.6.1. however I found a workaround by configuring this option ->defaultToday(true)