From 20e47835281632183b35397ae9cc813e8ea32f5f Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Thu, 18 Dec 2025 08:30:30 +0100 Subject: [PATCH] Fix inconsistent match counting in log search MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use dataset.logContent instead of textContent for counting search matches in getMatchCount(). This aligns the counting logic with matchesSearch() which uses the same data attribute for filtering visibility, ensuring the displayed match count accurately reflects the number of visible/hidden lines. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- resources/views/livewire/project/shared/get-logs.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/livewire/project/shared/get-logs.blade.php b/resources/views/livewire/project/shared/get-logs.blade.php index 4d99941d0..aba0513c5 100644 --- a/resources/views/livewire/project/shared/get-logs.blade.php +++ b/resources/views/livewire/project/shared/get-logs.blade.php @@ -191,7 +191,7 @@ let count = 0; const query = this.searchQuery.toLowerCase(); lines.forEach(line => { - if (line.textContent.toLowerCase().includes(query)) { + if (line.dataset.logContent && line.dataset.logContent.toLowerCase().includes(query)) { count++; } });