-
-
Notifications
You must be signed in to change notification settings - Fork 363
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
I added a DateColumn and it automatically shows as filtered in the view even when not filtered. This is only happening in dev-development
which I upgraded to to fix the filter issue mentioned in #2187.
DateColumn::make('Processed"', 'date_processed')
->outputFormat('Y-m-d')
->sortable(),
DateRangeFilter::make('Processed')
->config([
'placeholder' => 'Choose Date Range',
])
->filter(function (Builder $builder, array $dateRange) {
$builder
->whereDate('date_processed', '>=', $dateRange['minDate'])
->whereDate('date_processed', '<=', $dateRange['maxDate']);
}),
How to reproduce the bug
No response
Package Version
dev-development
PHP Version
8.3.x
Laravel Version
No response
Alpine Version
No response
Theme
Tailwind 3.x
Notes
No response
Error Message
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working