LowerRockLabs / LaravelLivewireTablesAdvancedFilters

Advanced filters for Rappasoft Laravel Livewire Tables
7 stars 0 forks source link

Config doesn't work with custom date format other than the default #76

Open jonth93 opened 1 year ago

jonth93 commented 1 year ago

To get the filter to work correctly, the default date format has to be preserved:

'altFormat' => 'F j, Y', // The date format to be displayed once a date is selected
'ariaDateFormat' => 'F j, Y', // The date format to be displayed for screen-readers
'dateFormat' => 'Y-m-d', // The date format to be returned for use in the filter
'earliestDate' => '2022-01-01', // The earliest date permitted, this is not required
'latestDate' => date('Y-m-d') // The latest date permitted, this is not required

I cannot change the dateFormat to d-m-Y as the filter fails to apply?

jonth93 commented 1 year ago

This also results in the pill returning and empty string

lrljoe commented 11 months ago

Is this still the case? If so, I'll take a look at this one sooner rather than later.

jonth93 commented 11 months ago

Hi, yes this is still the case

lrljoe commented 11 months ago

Currently reviewing this, and will put a fix together by the end of the week.

However, v3 of the core Rappasoft package will include the DateRange and NumberRange filters.

I am trying to get any remaining extra filters into the pipeline. But please do join the official Rappasoft Discord for more updates.

lrljoe commented 10 months ago

This is fixed in the v3 beta, and I'll be backporting some fixes into v2 once v3 is stable and released. If you're going to Livewire 3, then definitely check out the core Rappasoft V3 beta.