diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d52df5..1495ad0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to `filament-image-gallery` will be documented in this file. +## v2.0.5 - 2024-12-11 + +### Fixed +- Image clicks no longer trigger Filament's table row navigation (`recordUrl`). Users no longer need to add `->recordUrl(null)` to their tables to use the image preview feature. + ## v2.0.1 - 2024-12-11 ### Added diff --git a/src/Tables/Columns/ImageGalleryColumn.php b/src/Tables/Columns/ImageGalleryColumn.php index 7b8ade2..5634c96 100644 --- a/src/Tables/Columns/ImageGalleryColumn.php +++ b/src/Tables/Columns/ImageGalleryColumn.php @@ -36,6 +36,15 @@ class ImageGalleryColumn extends Column protected string | Closure $visibility = 'public'; + protected function setUp(): void + { + parent::setUp(); + + // Disable the anchor tag wrapper so clicks can reach Viewer.js + $this->disabledClick(); + } + + public function thumbWidth(int | Closure | null $width): static { $this->thumbWidth = $width;