From 60d9a510694bb878f5482b5a73e1fb3346b498b3 Mon Sep 17 00:00:00 2001 From: Arthur Lefebvre Date: Wed, 11 Feb 2026 18:20:59 +0100 Subject: [PATCH] fixup! Add search for mobile view --- front/src/NavBarSearch.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/front/src/NavBarSearch.vue b/front/src/NavBarSearch.vue index ffdc9d1..06de70b 100644 --- a/front/src/NavBarSearch.vue +++ b/front/src/NavBarSearch.vue @@ -14,8 +14,12 @@ const emit = defineEmits('searchDone') const vMobileFocus = { - mounted: (el, binding) => el.focus(); - } + mounted: (el, binding) => { + if (binding.value) { + el.focus() + } + } + }; function onSearchClick() { if (typeof searchterm.value === "undefined" || searchterm.value === "") {