From dcaf503b71fecd76aedbf6be50dce9f863b1b8df Mon Sep 17 00:00:00 2001 From: salam Date: Sun, 22 Feb 2026 16:51:35 +0100 Subject: [PATCH] wip --- app/Livewire/MapperLeft.php | 5 +++++ app/Livewire/MapperRight.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/Livewire/MapperLeft.php b/app/Livewire/MapperLeft.php index b3332426..2925a238 100644 --- a/app/Livewire/MapperLeft.php +++ b/app/Livewire/MapperLeft.php @@ -60,6 +60,11 @@ class MapperLeft extends Component implements HasActions, HasSchemas, HasTable unset($this->search_values[$key]); } + $this->search_values = []; + $this->tableSearch = ''; // Clears the main search bar + $this->fill(['tableSearch' => '']); + $this->resetTableFiltersForm(); // Clears all filters + $this->dispatch('refreshMapperLeft'); } diff --git a/app/Livewire/MapperRight.php b/app/Livewire/MapperRight.php index 7c4bf2c6..613bf6ff 100644 --- a/app/Livewire/MapperRight.php +++ b/app/Livewire/MapperRight.php @@ -61,8 +61,8 @@ class MapperRight extends Component implements HasActions, HasSchemas, HasTable $this->search_values = []; $this->tableSearch = ''; // Clears the main search bar - $livewire->fill(['tableSearch' => '']); - $livewire->resetTableFiltersForm(); // Clears all filters + $this->fill(['tableSearch' => '']); + $this->resetTableFiltersForm(); // Clears all filters $this->dispatch('refreshMapperRight'); }