Skip to content

[Bug]: DateColumn always shows up as filtered, even without making a selection #2207

@MikeParkin

Description

@MikeParkin

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.

Image

            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

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions