[feat] scroll to top on a new search

This commit is contained in:
2026-02-24 10:15:45 -05:00
parent f3cfbe4ac5
commit ab1719b78f

View File

@@ -17,6 +17,8 @@
const start = document.querySelector('#start'); const start = document.querySelector('#start');
if (start) { if (start) {
start.value = '0'; start.value = '0';
document.querySelector('#cardGrid').innerHTML = '';
window.scrollTo({ top: 0, behavior: 'instant' });
} }
}; };
</script> </script>