File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
resources/views/tailwind/includes Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ class="origin-top-right absolute right-0 mt-2 w-full md:w-56 rounded-md shadow-l
51
51
<div class =" mt-1 relative rounded-md shadow-sm" >
52
52
<select
53
53
wire:model =" filters.{{ $key } }"
54
+ wire:key =" filter-{{ $key } }"
54
55
id =" filter-{{ $key } }"
55
56
class =" rounded-md shadow-sm block w-full pl-3 pr-10 py-2 text-base leading-6 border-gray-300 focus:outline-none focus:border-indigo-300 focus:shadow-outline-indigo sm:text-sm sm:leading-5"
56
57
>
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ public function __construct($id = null)
150
150
*/
151
151
public function getRowsQueryProperty (): Builder
152
152
{
153
- $ this ->cleanFilters ();
153
+ // $this->cleanFilters();
154
154
155
155
return $ this ->applySorting ($ this ->query ());
156
156
}
Original file line number Diff line number Diff line change @@ -13,6 +13,15 @@ trait WithFilters
13
13
'search ' => null ,
14
14
];
15
15
16
+ public function mountWithFilters ()
17
+ {
18
+ foreach ($ this ->filters () as $ filter => $ options ){
19
+ if (!isset ($ this ->filters [$ filter ])){
20
+ $ this ->filters [$ filter ] = null ;
21
+ }
22
+ }
23
+ }
24
+
16
25
public function resetFilters (): void
17
26
{
18
27
$ search = $ this ->filters ['search ' ] ?? null ;
You can’t perform that action at this time.
0 commit comments