fix: Prevent image clicks from triggering table row navigation by introducing ImageGalleryColumn and updating the changelog.

This commit is contained in:
HusamAl-Miyah
2025-12-11 15:10:00 +03:00
parent 34f0fe298b
commit 14bf7686af
2 changed files with 14 additions and 0 deletions

View File

@@ -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

View File

@@ -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;