Closed edwinheij closed 7 months ago
Can you show more about the error?
Just click one of the following options from the column listing:
Here's a (clean) repo where it's failing: https://github.com/edwinheij/livewire-powergrid-fail
Error thrown: https://flareapp.io/share/LPl9QqD7
Thank you
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.14
PowerGrid
5.2.2
Laravel
10.39.0
Livewire
3.3.5
Alpine JS
No response
Theme
Bootstrap
Describe the bug.
When toggling column I got an error:
Attempt to read property "field" on array
With initial load the$column
var is of typePowerComponents\LivewirePowerGrid\Column
but after the de-selecting a column the type changed toarray
. Should we change the templates to thedata_get
-method or has it something to do with hydrate from Livewire?To Reproduce...
Just deselect a column from a grid
Extra information