Merge pull request #1 from Husam-Almiyah/main
fix: Prevent image clicks from triggering table row navigation
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user