diff --git a/CHANGELOG.md b/CHANGELOG.md index 499b54b76..7060f51c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to `laravel-livewire-tables` will be documented in this file +## [v3.2.7] - 2024-06-05 +### Bug Fixes +- Ensure HTML Columns return HTML correctly by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1737 + ## [v3.2.6] - 2024-06-05 ### New Features - Add configurable wire:model for filters by @lrljoe in https://github.com/rappasoft/laravel-livewire-tables/pull/1699 diff --git a/resources/views/datatable.blade.php b/resources/views/datatable.blade.php index 73d8cf071..5c9625bb0 100644 --- a/resources/views/datatable.blade.php +++ b/resources/views/datatable.blade.php @@ -53,7 +53,11 @@ @continue($column->isReorderColumn() && !$this->getCurrentlyReorderingStatus() && $this->getHideReorderColumnUnlessReorderingStatus()) - {{ $column->renderContents($row) }} + @if($column->isHtml()) + {!! $column->renderContents($row) !!} + @else + {{ $column->renderContents($row) }} + @endif @endforeach diff --git a/src/LaravelLivewireTablesServiceProvider.php b/src/LaravelLivewireTablesServiceProvider.php index 0cdd740db..f0a50ed70 100644 --- a/src/LaravelLivewireTablesServiceProvider.php +++ b/src/LaravelLivewireTablesServiceProvider.php @@ -14,7 +14,7 @@ class LaravelLivewireTablesServiceProvider extends ServiceProvider public function boot(): void { - AboutCommand::add('Rappasoft Laravel Livewire Tables', fn () => ['Version' => '3.2.6']); + AboutCommand::add('Rappasoft Laravel Livewire Tables', fn () => ['Version' => '3.2.7']); $this->mergeConfigFrom( __DIR__.'/../config/livewire-tables.php', 'livewire-tables'