[feat] scroll to top on a new search
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user