From 800b626c99b87bc8b67cc4d7ec461f1802bd4bb8 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Wed, 6 Mar 2024 08:21:26 -0300 Subject: [PATCH] fire searchbar search on icon click --- src/components/ui/VnSearchbar.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/ui/VnSearchbar.vue b/src/components/ui/VnSearchbar.vue index 99710408d..d8155c21a 100644 --- a/src/components/ui/VnSearchbar.vue +++ b/src/components/ui/VnSearchbar.vue @@ -81,8 +81,9 @@ onMounted(() => { }); async function search() { - const staticParams = Object.entries(store.userParams) - .filter(([key, value]) => value && (props.staticParams || []).includes(key)); + const staticParams = Object.entries(store.userParams).filter( + ([key, value]) => value && (props.staticParams || []).includes(key) + ); await arrayData.applyFilter({ params: { ...Object.fromEntries(staticParams), @@ -117,7 +118,12 @@ async function search() { autofocus >