Closed ZitelliDZ closed 2 months ago
i have the same problem when updating from V3.3.4 to V3.3.8 !
If you published the views, then this now uses computed properties to get rows/columns
I will issue an update for now to default to the original behaviour.
This should be fixed in the latest version. The new behaviour was set to enabled by default, this is no longer the case. Let me know if after updating this still presents an issue.
This should be fixed in the latest version. The new behaviour was set to enabled by default, this is no longer the case. Let me know if after updating this still presents an issue.
In my case, only fails (for now) if there is a boolean
column in the table.
Undefined variable $component
I think you can see that pic.
Some tables work, the ones that have boolean
don't.
Replace with
@if ($isTailwind)
@if ($status)
@if ($type === 'icons')
@if ($successValue === true)
<x-heroicon-o-check-circle class="inline-block h-5 w-5 text-green-500" />
@else
<x-heroicon-o-check-circle class="inline-block h-5 w-5 text-red-500" />
@endif
@elseif ($type === 'yes-no')
@if ($successValue === true)
<span>Yes</span>
@else
<span>No</span>
@endif
@endif
@else
@if ($type === 'icons')
@if ($successValue === false)
<x-heroicon-o-x-circle class="inline-block h-5 w-5 text-green-500" />
@else
<x-heroicon-o-x-circle class="inline-block h-5 w-5 text-red-500" />
@endif
@elseif ($type === 'yes-no')
@if ($successValue === false)
<span>Yes</span>
@else
<span>No</span>
@endif
@endif
@endif
@elseif ($isBootstrap)
@if ($status)
@if ($type === 'icons')
@if ($successValue === true)
<x-heroicon-o-check-circle class="d-inline-block text-success laravel-livewire-tables-btn-small" />
@else
<x-heroicon-o-check-circle class="d-inline-block text-danger laravel-livewire-tables-btn-small" />
@endif
@elseif ($type === 'yes-no')
@if ($successValue === true)
<span>Yes</span>
@else
<span>No</span>
@endif
@endif
@else
@if ($type === 'icons')
@if ($successValue === false)
<x-heroicon-o-x-circle class="d-inline-block text-success laravel-livewire-tables-btn-small" />
@else
<x-heroicon-o-x-circle class="d-inline-block text-danger laravel-livewire-tables-btn-small" />
@endif
@elseif ($type === 'yes-no')
@if ($successValue === false)
<span>Yes</span>
@else
<span>No</span>
@endif
@endif
@endif
@endif
There have been numerous changes to the blades/views, so would recommend that you look at migrating to the new ones.
My bad I think, should a clean install works or how can I migrate to the new blade/views?
If you've not changed anything in the views manually, then you can just delete the resources/views/vendor/livewire-tables directory. You don't need to publish the views for anything to work.
Alternatively - rename the directory temporarily to give it a test!
If you have previously published the views, you will need to set the following in your configure method:
public function configure(): void
{
$this->useComputedPropertiesDisabled();
}
This ensures that the original methodology is used.
What happened?
How to reproduce the bug
The error occurs when the package is updated to the latest version. V3.3.3 => V3.4.8
Package Version
3.4.8
PHP Version
8.2.x
Laravel Version
11.17
Alpine Version
3.14.0
Theme
Bootstrap 5.x
Notes
No response
Error Message
No response