Have you searched through other issues to see if your problem is already reported or has been fixed?
Yes, I did not find it.
Did you read the documentation?
Yes, I did not find it.
Have you tried to publish the views?
Yes - I didn't work.
Is there an error in the console?
No
PHP Version
8.2.16
PowerGrid
5.4.9
Laravel
10.39.0
Livewire
3.4.10
Alpine JS
No response
Theme
Tailwind 3.x
Describe the bug.
When clearing a filter from a relation (with a dot (.)) too much filters are cleared. All the fields from a specific type of that relation are cleared.
A Filter::select(...) for relation.actual and relation.actual2 are both cleared when only clearing relation.actual from the UI.
To Reproduce...
To reproduce I make a repo for it: https://github.com/edwinheij/livewire-powergrid-fail
You can see the 'normal' actual filters are fine, but relation.actual and relation.actual2 fields can't be cleared the way you would expect.
Extra information
A quick workaround/fix would be in /Concerns/Filter.php (didn't fully test it, you can do better I guess)
Have you searched through other issues to see if your problem is already reported or has been fixed?
Yes, I did not find it.
Did you read the documentation?
Yes, I did not find it.
Have you tried to publish the views?
Yes - I didn't work.
Is there an error in the console?
No
PHP Version
8.2.16
PowerGrid
5.4.9
Laravel
10.39.0
Livewire
3.4.10
Alpine JS
No response
Theme
Tailwind 3.x
Describe the bug.
When clearing a filter from a relation (with a dot (.)) too much filters are cleared. All the fields from a specific type of that relation are cleared. A
Filter::select(...)
forrelation.actual
andrelation.actual2
are both cleared when only clearingrelation.actual
from the UI.To Reproduce...
To reproduce I make a repo for it: https://github.com/edwinheij/livewire-powergrid-fail You can see the 'normal'
actual
filters are fine, butrelation.actual
andrelation.actual2
fields can't be cleared the way you would expect.Extra information
A quick workaround/fix would be in /Concerns/Filter.php (didn't fully test it, you can do better I guess)
Change (line 36):
to: