From c9a82d330926639c21bfe9622db766752eb9305d Mon Sep 17 00:00:00 2001 From: Sneha Nair Date: Wed, 20 May 2026 00:56:42 +0530 Subject: [PATCH] fix: clear search bar text when switching categories --- web-app/index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web-app/index.html b/web-app/index.html index 4d6905e..13dd9a2 100644 --- a/web-app/index.html +++ b/web-app/index.html @@ -1523,6 +1523,11 @@

Stay Updated

} }); }); +document.querySelectorAll('.tab, .sticky-tab').forEach(function(tab) { + tab.addEventListener('click', function() { + searchInput.value = ''; + }); +});