Reset search input on user navigation

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2023-01-04 11:31:33 +01:00
committed by Rūdolfs Ošiņš
parent f72405a3e4
commit a76f789636
+3
View File
@@ -145,6 +145,9 @@
let loading = false;
let shaking = false;
// Clears search input on user navigation.
router.historyStore.subscribe(() => (input = ""));
function shake() {
shaking = true;
debounce(() => (shaking = false), 500)();