Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Reset search input on user navigation
Sebastian Martinez committed 3 years ago
commit a76f789636f678ddd19afa23c4f916ab6c8cf359
parent f72405a3e49d2370fc64263ebef883318004894d
1 file changed +3 -0
modified src/App/Header/Search.svelte
@@ -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)();