From d14148781fd773888a8eeeacc0112148c5035923 Mon Sep 17 00:00:00 2001 From: "Ozzy (AI Assistant)" Date: Mon, 27 Jul 2026 18:46:41 +0000 Subject: [PATCH] Fix industry filter badge and event isolation --- index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.html b/index.html index 254c10b..d47cee8 100644 --- a/index.html +++ b/index.html @@ -268,10 +268,16 @@ btn.classList.add('active'); activeFilter = btn.dataset.filter; render(); + // Update the filter toggle badge + const badge = document.getElementById('filterBadge'); + if (badge) badge.textContent = btn.textContent; }); // ─── Initial Render ─────────────────────────────────────────────── render(); + // Set initial badge + const initBadge = document.getElementById('filterBadge'); + if (initBadge) initBadge.textContent = document.querySelector('.industry-btn.active')?.textContent || 'All'; function toggleFilters() { const container = document.getElementById('industryFilters');