mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 11:20:36 +08:00
Reset search input on user navigation
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
@@ -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)();
|
||||
|
||||
Reference in New Issue
Block a user