From ab1719b78f9ff3076dd18b5fec47cce93adc0095 Mon Sep 17 00:00:00 2001 From: Thad Miller Date: Tue, 24 Feb 2026 10:15:45 -0500 Subject: [PATCH] [feat] scroll to top on a new search --- src/components/StickyFilter.astro | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/StickyFilter.astro b/src/components/StickyFilter.astro index f010f27..61c8b54 100644 --- a/src/components/StickyFilter.astro +++ b/src/components/StickyFilter.astro @@ -17,6 +17,8 @@ const start = document.querySelector('#start'); if (start) { start.value = '0'; + document.querySelector('#cardGrid').innerHTML = ''; + window.scrollTo({ top: 0, behavior: 'instant' }); } };